diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-05-04 11:09:02 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-05-04 11:09:02 +0300 |
commit | 64847bb6d182c73f7489a821ea5724687dab1bc1 (patch) | |
tree | 419eac34a53a91f228347c8a0f3abe903f9d3548 /scripts/automation/regression/stateful_tests | |
parent | f27bfbab72f9221b221a7f36f4063e9ff8e9d307 (diff) |
regression: don't fail because of GA sending errors.
Diffstat (limited to 'scripts/automation/regression/stateful_tests')
-rwxr-xr-x | scripts/automation/regression/stateful_tests/trex_general_test.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_general_test.py b/scripts/automation/regression/stateful_tests/trex_general_test.py index 42720f70..010ceb36 100755 --- a/scripts/automation/regression/stateful_tests/trex_general_test.py +++ b/scripts/automation/regression/stateful_tests/trex_general_test.py @@ -165,10 +165,13 @@ class CTRexGeneral_Test(unittest.TestCase): # report benchmarks if self.GAManager: - setup_test = '%s.%s' % (CTRexScenario.setup_name, self.get_name()) - self.GAManager.gaAddAction(Event = 'stateful_test', action = setup_test, label = 'bw_per_core', value = int(test_norm_cpu)) - self.GAManager.gaAddAction(Event = 'stateful_test', action = setup_test, label = 'bw_per_core_exp', value = int(expected_norm_cpu)) - self.GAManager.emptyAndReportQ() + try: + setup_test = '%s.%s' % (CTRexScenario.setup_name, self.get_name()) + self.GAManager.gaAddAction(Event = 'stateful_test', action = setup_test, label = 'bw_per_core', value = int(test_norm_cpu)) + self.GAManager.gaAddAction(Event = 'stateful_test', action = setup_test, label = 'bw_per_core_exp', value = int(expected_norm_cpu)) + self.GAManager.emptyAndReportQ() + except Exception as e: + print('Sending GA failed: %s' % e) def check_results_gt (self, res, name, val): if res is None: |