aboutsummaryrefslogtreecommitdiffstats
path: root/tests/report_tests
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2022-08-17 11:51:21 -0400
committerJake Hunsaker <jhunsake@redhat.com>2022-08-29 09:17:55 -0400
commitedd436a90e6e94029da7e5aa8726dab505c6a738 (patch)
treedecd121c9f1459da14809780597f3b0efae8d046 /tests/report_tests
parent80f71f6a5229fa262a5ddaaa9be4ef99f648abbb (diff)
downloadsos-edd436a90e6e94029da7e5aa8726dab505c6a738.tar.gz
[tests] Allow test suite to use locally installed sos
Up until now, the test suite was forced to be run using the git checkout. While this is useful for on-the-fly testing, it does miss an important use case of building a test package from the checkout, and running it using that as the system installation of sos. This commit allows the use of an installed version of sos to test against. This may be leveraged by adding `-p TESTLOCAL=true` in the `avocado run` command used to launch the test suite. Setting this parameter to any other value, or omitting it entirely, will continue the current behavior or using the git checkout for running tests. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/report_tests')
-rw-r--r--tests/report_tests/smoke_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/report_tests/smoke_tests.py b/tests/report_tests/smoke_tests.py
index a313405e..2d5c41e3 100644
--- a/tests/report_tests/smoke_tests.py
+++ b/tests/report_tests/smoke_tests.py
@@ -10,7 +10,7 @@ import re
from avocado.utils import process
-from sos_tests import StageOneReportTest, SOS_BIN, redhat_only, ubuntu_only
+from sos_tests import StageOneReportTest, redhat_only, ubuntu_only
# These are the header strings in --list-plugins output
@@ -27,7 +27,7 @@ class AllPluginSmokeTest(StageOneReportTest):
"""
def pre_sos_setup(self):
- _cmd = '%s report --list-plugins' % SOS_BIN
+ _cmd = '%s report --list-plugins' % self.sos_bin
out = process.run(_cmd, timeout=300).stdout.decode()
reg = DISABLED + '(.*?)' + OPTIONS
self.plugs = []