summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-09-05 16:21:37 (GMT)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-09-05 19:09:06 (GMT)
commitebe61135c9a242ac39204cbd901fa9f407dae069 (patch)
treeb80425bbe0a56fd9f9dd9db3b5f8e1ca65ff91bb
parentcb0f3fa13f315a1aa0469d3479673860dcba8eb9 (diff)
downloadbuildroot-ebe61135c9a242ac39204cbd901fa9f407dae069.tar.gz
buildroot-ebe61135c9a242ac39204cbd901fa9f407dae069.tar.bz2
support/tests: use relative test_dir
When we list the available tests, we use test_dir, which is set from the path of the script. However, when we run the tests, we use the hard-coded path. Ditto to find the config file. For consistency, always use test_dir. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rwxr-xr-xsupport/testing/run-tests4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/testing/run-tests b/support/testing/run-tests
index 95c1565..ae0bd33 100755
--- a/support/testing/run-tests
+++ b/support/testing/run-tests
@@ -108,8 +108,8 @@ def main():
nose2_args = ["-v",
"-N", str(args.testcases),
- "-s", "support/testing",
- "-c", "support/testing/conf/unittest.cfg"]
+ "-s", test_dir,
+ "-c", os.path.join(test_dir, "conf/unittest.cfg")]
if len(args.testname) != 0:
nose2_args += args.testname