aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/robot
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2020-02-25 08:59:57 +0100
committerJan Gelety <jgelety@cisco.com>2020-02-25 13:20:08 +0100
commit83c8779f804bda17687f885241748c9c5b15cf1f (patch)
treed89d21d12ba4e4400a17a71867daf290e8e47e95 /resources/libraries/robot
parente8c9d88f1a6ca829919cb50f79ec82c1442e915e (diff)
FIX: check if t-rex is running at test setup of all perf tests
Change-Id: I9af632035a1415666b2470c62a41d1b6acbf33c8 Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r--resources/libraries/robot/shared/test_setup.robot9
1 files changed, 8 insertions, 1 deletions
diff --git a/resources/libraries/robot/shared/test_setup.robot b/resources/libraries/robot/shared/test_setup.robot
index 941b90490a..5ebe048cd9 100644
--- a/resources/libraries/robot/shared/test_setup.robot
+++ b/resources/libraries/robot/shared/test_setup.robot
@@ -1,4 +1,4 @@
-# Copyright (c) 2019 Cisco and/or its affiliates.
+# Copyright (c) 2020 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
@@ -41,3 +41,10 @@
| | FOR | ${dut} | IN | @{duts}
| | | Clean Up Namespaces | ${nodes['${dut}']}
| | END
+
+| Additional Test Setup Action For performance
+| | [Documentation]
+| | ... | Additional Setup for tests which uses namespace.
+| |
+| | ${trex_running}= | Is Trex Running | ${tg}
+| | Run Keyword Unless | ${trex_running} | Startup Trex | ${tg} | ${osi_layer}