diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-05-14 06:14:08 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-05-14 06:14:08 +0300 |
commit | ccd12c1e16cd5a8b575fd531444a6415d250b8ed (patch) | |
tree | 85be3e77d13bc5015578fe30c224a05685da8963 /scripts/automation/regression/stateful_tests | |
parent | a08c4df1da6892a515fb5e4ddce4a7d525d8fcee (diff) |
add master daemon to package, little fixes to update method
Diffstat (limited to 'scripts/automation/regression/stateful_tests')
-rwxr-xr-x | scripts/automation/regression/stateful_tests/trex_general_test.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_general_test.py b/scripts/automation/regression/stateful_tests/trex_general_test.py index ac2d7b89..38e97597 100755 --- a/scripts/automation/regression/stateful_tests/trex_general_test.py +++ b/scripts/automation/regression/stateful_tests/trex_general_test.py @@ -274,17 +274,9 @@ class CTRexGeneral_Test(unittest.TestCase): # raise def unzip_client_package(self): - client_pkg_files = glob('%s/trex_client*.tar.gz' % CTRexScenario.scripts_path) - if not len(client_pkg_files): - raise Exception('Could not find client package') - if len(client_pkg_files) > 1: - raise Exception('Found more than one client packages') - client_pkg_name = os.path.basename(client_pkg_files[0]) if not os.path.exists('%s/trex_client' % CTRexScenario.scripts_path): print('\nUnzipping package') - return_code, _, stderr = misc_methods.run_command("sh -ec 'cd %s; tar -xzf %s'" % (CTRexScenario.scripts_path, client_pkg_name)) - if return_code: - raise Exception('Could not untar the client package: %s' % stderr) + CTRexScenario.trex.master_daemon.unpack_client() else: print('\nClient package is untarred') |