aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-03-30 14:58:17 +0200
committerHarald Welte <laforge@gnumonks.org>2016-03-31 11:59:56 +0200
commit5f4567b2a224cebf9ac9adebf9f6647a5ff489e5 (patch)
treef51666974e6fdfaca2831d75bc5e263da7d57508
parentd401cc13aefeea45fd2514466998dd62e6c5fabe (diff)
Extend apps attribute
In addition to binary name it's now possible to provide extra command-line arguments in osmoappdesc.py for application under test. This change is fully optional and backward compatible.
-rw-r--r--osmopy/osmotestconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/osmopy/osmotestconfig.py b/osmopy/osmotestconfig.py
index 808048d..b020d86 100644
--- a/osmopy/osmotestconfig.py
+++ b/osmopy/osmotestconfig.py
@@ -49,7 +49,7 @@ def test_config_atest(app_desc, config, run_test, verbose=True):
proc = None
ret = None
try:
- cmd = [app_desc[1], "-c", config]
+ cmd = app_desc[1].split(' ') + [ "-c", config]
if verbose:
print "Verifying %s, test %s" % (' '.join(cmd), run_test.__name__)
@@ -128,7 +128,7 @@ def verify_doc(vty):
# Skip testing the configurations of anything that hasn't been compiled
def app_exists(app_desc):
- cmd = app_desc[1]
+ cmd = app_desc[1].split(' ')[0]
return os.path.exists(cmd)