|
61 | 61 | ST2_AUTH_URL: "{{protocol}}://{{hostname}}:9100" |
62 | 62 | ST2_API_URL: "{{protocol}}://{{hostname}}:9101" |
63 | 63 | ST2_AUTH_TOKEN: "{{token}}" |
64 | | - cmd: "st2-run-pack-tests -p /opt/stackstorm/packs/{{ pack_to_install_1 }} -x -j" |
| 64 | + cmd: ". /opt/stackstorm/st2/bin/activate; st2-run-pack-tests -p /opt/stackstorm/packs/{{ pack_to_install_1 }} -x -j" |
65 | 65 | timeout: "{{test_timeout}}" |
66 | 66 | on-success: run_pack_tests_using_a_pack_tests_local_virtualenv |
67 | 67 | on-failure: error_handler |
|
74 | 74 | ST2_AUTH_URL: "{{protocol}}://{{hostname}}:9100" |
75 | 75 | ST2_API_URL: "{{protocol}}://{{hostname}}:9101" |
76 | 76 | ST2_AUTH_TOKEN: "{{token}}" |
77 | | - cmd: "st2-run-pack-tests -p /opt/stackstorm/packs/{{ pack_to_install_2 }}" |
| 77 | + cmd: ". /opt/stackstorm/st2/bin/activate; st2-run-pack-tests -p /opt/stackstorm/packs/{{ pack_to_install_2 }}" |
78 | 78 | timeout: "{{test_timeout}}" |
79 | 79 | on-success: run_pack_tests_using_existing_pack_local_virtualenv |
80 | 80 | on-failure: error_handler |
|
90 | 90 | # Note: Second run should succeed because the previous run created a virtual environment. |
91 | 91 | # We need to run this as part of the same task because if we run it inside other task, |
92 | 92 | # /tmp/ directory where virtualenv is created will be deleted by then. |
93 | | - cmd: "st2-run-pack-tests -p /opt/stackstorm/packs/{{ pack_to_install_2 }} && st2-run-pack-tests -p /opt/stackstorm/packs/{{ pack_to_install_2 }} -j" |
| 93 | + cmd: ". /opt/stackstorm/st2/bin/activate; st2-run-pack-tests -p /opt/stackstorm/packs/{{ pack_to_install_2 }} && st2-run-pack-tests -p /opt/stackstorm/packs/{{ pack_to_install_2 }} -j" |
94 | 94 | timeout: "{{test_timeout}}" |
95 | 95 | on-success: success_handler |
96 | 96 | on-failure: error_handler |
|
0 commit comments