test: make systemd-networkd-tests.py run on arbitrary directory
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Oct 2018 05:38:30 +0000 (14:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Oct 2018 05:38:30 +0000 (14:38 +0900)
test/test-network/systemd-networkd-tests.py

index 043fdac..fc347c6 100755 (executable)
@@ -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)