diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-11-13 13:46:19 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-11-13 13:46:19 +0200 |
commit | 0b1274653592fe4232d14e3a2de8b909bd6c5d13 (patch) | |
tree | 8c7cfc8a4365a8d954c50782edd191d53a2689b5 /linux_dpdk | |
parent | fe17cbcca2a4e9f7734bf25dffb072c61e9cb074 (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-x | linux_dpdk/ws_main.py | 15 |
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): |