summaryrefslogtreecommitdiffstats
path: root/linux_dpdk
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-11-13 13:46:19 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-11-13 13:46:19 +0200
commit0b1274653592fe4232d14e3a2de8b909bd6c5d13 (patch)
tree8c7cfc8a4365a8d954c50782edd191d53a2689b5 /linux_dpdk
parentfe17cbcca2a4e9f7734bf25dffb072c61e9cb074 (diff)
verify os.system return status in linux_dpdk/ws_main.py
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'linux_dpdk')
-rwxr-xr-xlinux_dpdk/ws_main.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/linux_dpdk/ws_main.py b/linux_dpdk/ws_main.py
index 0ad407e4..b5635e8c 100755
--- a/linux_dpdk/ws_main.py
+++ b/linux_dpdk/ws_main.py
@@ -31,6 +31,16 @@ USERS_ALLOWED_TO_RELEASE = ['hhaim']
# utility for group source code
###################################
+orig_system = os.system
+
+def verify_system(cmd):
+ ret = orig_system(cmd)
+ if ret:
+ raise Exception('Return code %s on command: system("%s")' % (ret, cmd))
+
+os.system = verify_system
+
+
class SrcGroup:
' group of source by directory '
@@ -905,12 +915,11 @@ files_list=[
'trex-cfg',
'bp-sim-64',
'bp-sim-64-debug',
- 't-rex-debug-gdb',
+ 't-rex-64-debug-gdb',
'stl-sim',
'find_python.sh',
'run_regression',
'run_functional_tests',
- 'release_notes.pdf',
'dpdk_nic_bind.py',
'dpdk_setup_ports.py',
'doc_process.py',
@@ -920,7 +929,7 @@ files_list=[
'daemon_server'
];
-files_dir=['cap2','avl','cfg','ko','automation', 'external_libs', 'python-lib','stl','api','exp','dumy_libs']
+files_dir=['cap2','avl','cfg','ko','automation', 'external_libs', 'python-lib','stl','exp','dumy_libs']
class Env(object):