[PATCH 4/4] Extend apps attribute

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

msuraev at sysmocom.de msuraev at sysmocom.de
Wed Mar 30 12:58:17 UTC 2016


From: Max <msuraev at sysmocom.de>

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.
---
 osmopy/osmotestconfig.py | 4 ++--
 1 file 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)
 
 
-- 
2.8.0




More information about the OpenBSC mailing list