test: make systemd-networkd-tests.py run on arbitrary directory
This commit is contained in:
parent
ec6a47044a
commit
6aea927681
|
@ -28,7 +28,7 @@ def setUpModule():
|
||||||
os.makedirs(networkd_ci_path, exist_ok=True)
|
os.makedirs(networkd_ci_path, exist_ok=True)
|
||||||
|
|
||||||
shutil.rmtree(networkd_ci_path)
|
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():
|
def tearDownModule():
|
||||||
shutil.rmtree(networkd_ci_path)
|
shutil.rmtree(networkd_ci_path)
|
||||||
|
|
Loading…
Reference in a new issue