summaryrefslogtreecommitdiffstats
path: root/test/util.py
diff options
context:
space:
mode:
authorAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2019-05-30 13:53:07 +0200
committerAndrej Kozemcak <andrej.kozemcak@pantheon.tech>2019-06-03 10:01:30 +0200
commite77922662052f0caec4129ee43ab9d176b806769 (patch)
treeb66dbd8426c9d485e10ea5499748d5824a7f247b /test/util.py
parentadf44f2a5eeb056c5fece0454d3e09d08df160fe (diff)
[TEST] - automatic test run
- skript find all test file - start test function from test file Change-Id: I3b37247c960afa6bf788cd14f1d8d240af3100c6 Signed-off-by: Andrej Kozemcak <andrej.kozemcak@pantheon.tech>
Diffstat (limited to 'test/util.py')
-rw-r--r--test/util.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/util.py b/test/util.py
index 576bc43..0d4ba65 100644
--- a/test/util.py
+++ b/test/util.py
@@ -27,13 +27,11 @@ def ping(ip):
def import_yang_modules():
print("Import YANG models to sysrepo.")
- #directory = '/root/src/sweetcomb/'
- directory = './'
- os.chdir(directory)
+ directory = os.getcwd()
subprocess.run(["make", "uninstall-models"])
subprocess.run(["make", "install-models"])
- os.chdir(directory + "test/conf/")
+ os.chdir(directory + "/test/conf/")
print("Import configuration to sysrepo datastore.")
subprocess.run(["sysrepocfg", "--import=ietf-interfaces.xml",
"--datastore=startup", "--format=xml", "--leve=0",