fix venv prepare

Prod-related: PROD-26374 (PROD:26374)

Change-Id: I7b3a9ca4df024fcacaec8926bb9eaecaf19c8a97
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index 58277cd..a670f87 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -307,8 +307,8 @@
 
                     } else {
                         common.warningMsg('Old Cookiecutter env detected!')
-                        common.infoMsg(python.runVirtualenvCommand(vEnv, "python ${templateEnvPatched}/workflow_definition_test.py"))
                         python.setupVirtualenv(vEnv, 'python2', [], "${templateEnvPatched}/requirements.txt")
+                        common.infoMsg(python.runVirtualenvCommand(vEnv, "python ${templateEnvPatched}/workflow_definition_test.py"))
                     }
                 } else {
                     common.infoMsg('No need to process: workflow_definition test')