From: Yu Watanabe Date: Wed, 3 Oct 2018 05:38:30 +0000 (+0900) Subject: test: make systemd-networkd-tests.py run on arbitrary directory X-Git-Tag: v240~638^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10261%2Fhead;p=thirdparty%2Fsystemd.git test: make systemd-networkd-tests.py run on arbitrary directory --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 043fdac7780..fc347c60088 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -28,7 +28,7 @@ def setUpModule(): os.makedirs(networkd_ci_path, exist_ok=True) shutil.rmtree(networkd_ci_path) - copytree('conf', networkd_ci_path) + copytree(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'conf'), networkd_ci_path) def tearDownModule(): shutil.rmtree(networkd_ci_path)