aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing/tdc_config.py
diff options
context:
space:
mode:
authorLucas Bates <lucasb@mojatatu.com>2018-12-06 17:42:24 -0500
committerDavid S. Miller <davem@davemloft.net>2018-12-07 16:39:03 -0800
commitd37e56df23f9e5916f95b60388c3f179c53c7102 (patch)
tree9df1f92ec28eeb7c43fcce1a56fa468204aa3338 /tools/testing/selftests/tc-testing/tdc_config.py
parentnet: call sk_dst_reset when set SO_DONTROUTE (diff)
downloadlinux-dev-d37e56df23f9e5916f95b60388c3f179c53c7102.tar.xz
linux-dev-d37e56df23f9e5916f95b60388c3f179c53c7102.zip
tc-testing: Add command timeout feature to tdc
Using an attribute set in the tdc_config.py file, limit the amount of time tdc will wait for an executed command to complete and prevent the script from hanging entirely. This timeout will be applied to all executed commands. Signed-off-by: Lucas Bates <lucasb@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tdc_config.py')
-rw-r--r--tools/testing/selftests/tc-testing/tdc_config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc_config.py b/tools/testing/selftests/tc-testing/tdc_config.py
index d651bc1501bd..6d91e48c2625 100644
--- a/tools/testing/selftests/tc-testing/tdc_config.py
+++ b/tools/testing/selftests/tc-testing/tdc_config.py
@@ -15,6 +15,8 @@ NAMES = {
'DEV1': 'v0p1',
'DEV2': '',
'BATCH_FILE': './batch.txt',
+ # Length of time in seconds to wait before terminating a command
+ 'TIMEOUT': 12,
# Name of the namespace to use
'NS': 'tcut',
# Directory containing eBPF test programs