diff options
author | duerpei <duep.fnst@fujitsu.com> | 2023-07-12 04:58:50 +0800 |
---|---|---|
committer | duerpei <duep.fnst@fujitsu.com> | 2023-07-12 04:58:50 +0800 |
commit | fb969436af3ebbdc81c15b23ad8b1ef37a8c2694 (patch) | |
tree | 6d831d66c6e4d799e837a443a548a4ffae2a98a2 | |
parent | 581b83641ff0ecd114d87a8b7eab04f81fd2e7f5 (diff) |
agl-test-framework: replace "-" with "_"
Replace "-" with "_" in the name of the directory to
solve the following errors when running agl-test:
import file mismatch:
imported module 'run_tests' has this __file__ attribute:
/usr/AGL/agl-test/tests/aio-stress/run_tests.py
which is not the same as the test file we want to collect:
/usr/AGL/agl-test/tests/gdk-pixbuf/run_tests.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename
for your test file modules
Bug-AGL: SPEC-4345
Signed-off-by: duerpei <duep.fnst@fujitsu.com>
Change-Id: Id8028dfbda618a9b7858602d3832bf2eb7f7ef5e
-rw-r--r-- | plugins/agl_test_base.py | 4 | ||||
-rw-r--r-- | tests/aio_stress/__init__.py (renamed from tests/aio-stress/__init__.py) | 0 | ||||
-rw-r--r-- | tests/aio_stress/run_tests.py (renamed from tests/aio-stress/run_tests.py) | 0 | ||||
-rw-r--r-- | tests/gdk_pixbuf/__init__.py (renamed from tests/gdk-pixbuf/__init__.py) | 0 | ||||
-rw-r--r-- | tests/gdk_pixbuf/run_tests.py (renamed from tests/gdk-pixbuf/run_tests.py) | 0 | ||||
-rw-r--r-- | tests/stress_ng/__init__.py (renamed from tests/stress-ng/__init__.py) | 0 | ||||
-rw-r--r-- | tests/stress_ng/run_tests.py (renamed from tests/stress-ng/run_tests.py) | 0 |
7 files changed, 2 insertions, 2 deletions
diff --git a/plugins/agl_test_base.py b/plugins/agl_test_base.py index a6bcff9..3a0bab4 100644 --- a/plugins/agl_test_base.py +++ b/plugins/agl_test_base.py @@ -27,10 +27,10 @@ class AGLBaseTest: return conf.get_log_file(self.name) def get_workdir(self): - return conf.WORK_DIR + self.name + "/resource/" + return conf.WORK_DIR + self.name.replace('-','_') + "/resource/" def get_spec_path(self): - return conf.WORK_DIR + self.name + "/spec.json" + return conf.WORK_DIR + self.name.replace('-','_') + "/spec.json" def append_one_caseinfo(name, value, status): self.case_info_list[name] = [name, value, status] diff --git a/tests/aio-stress/__init__.py b/tests/aio_stress/__init__.py index e69de29..e69de29 100644 --- a/tests/aio-stress/__init__.py +++ b/tests/aio_stress/__init__.py diff --git a/tests/aio-stress/run_tests.py b/tests/aio_stress/run_tests.py index e7e8b5c..e7e8b5c 100644 --- a/tests/aio-stress/run_tests.py +++ b/tests/aio_stress/run_tests.py diff --git a/tests/gdk-pixbuf/__init__.py b/tests/gdk_pixbuf/__init__.py index e69de29..e69de29 100644 --- a/tests/gdk-pixbuf/__init__.py +++ b/tests/gdk_pixbuf/__init__.py diff --git a/tests/gdk-pixbuf/run_tests.py b/tests/gdk_pixbuf/run_tests.py index 56bda29..56bda29 100644 --- a/tests/gdk-pixbuf/run_tests.py +++ b/tests/gdk_pixbuf/run_tests.py diff --git a/tests/stress-ng/__init__.py b/tests/stress_ng/__init__.py index e69de29..e69de29 100644 --- a/tests/stress-ng/__init__.py +++ b/tests/stress_ng/__init__.py diff --git a/tests/stress-ng/run_tests.py b/tests/stress_ng/run_tests.py index ec6822b..ec6822b 100644 --- a/tests/stress-ng/run_tests.py +++ b/tests/stress_ng/run_tests.py |