From: Yann E. MORIN Date: Tue, 5 Sep 2017 16:21:37 +0000 (+0200) Subject: support/tests: use relative test_dir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ebe61135c9a242ac39204cbd901fa9f407dae069;p=buildroot.git 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" Cc: Thomas Petazzoni Cc: Ricardo Martincoski Signed-off-by: Thomas Petazzoni --- diff --git a/support/testing/run-tests b/support/testing/run-tests index 95c1565f72..ae0bd336b5 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