Skip to content

Commit b22601b

Browse files
authored
Merge pull request #184 from StackStorm/fix-ci-pack-tests-tool
Various fixes to the test_run_pack_tests_tool chain
2 parents 81e1b47 + 9e2cad3 commit b22601b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packs/tests/actions/chains/test_run_pack_tests_tool.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ chain:
6161
ST2_AUTH_URL: "{{protocol}}://{{hostname}}:9100"
6262
ST2_API_URL: "{{protocol}}://{{hostname}}:9101"
6363
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"
6565
timeout: "{{test_timeout}}"
6666
on-success: run_pack_tests_using_a_pack_tests_local_virtualenv
6767
on-failure: error_handler
@@ -74,7 +74,7 @@ chain:
7474
ST2_AUTH_URL: "{{protocol}}://{{hostname}}:9100"
7575
ST2_API_URL: "{{protocol}}://{{hostname}}:9101"
7676
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 }}"
7878
timeout: "{{test_timeout}}"
7979
on-success: run_pack_tests_using_existing_pack_local_virtualenv
8080
on-failure: error_handler
@@ -90,7 +90,7 @@ chain:
9090
# Note: Second run should succeed because the previous run created a virtual environment.
9191
# We need to run this as part of the same task because if we run it inside other task,
9292
# /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"
9494
timeout: "{{test_timeout}}"
9595
on-success: success_handler
9696
on-failure: error_handler

packs/tests/actions/test_installed_pack_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
class TesetInstalledPackVersionAction(Action):
22-
def run(self, installed_pack):
22+
def run(self, installed_pack, **kwargs):
2323
"""
2424
:param installed_pack: Installed pack name with version
2525
:type: installed_pack: ``string``

0 commit comments

Comments
 (0)