diff options
author | Brenda J. Butler <bjb@mojatatu.com> | 2017-10-31 21:27:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-01 05:04:47 +0300 |
commit | 181d6610f5311868f092d033f0273140dd44fb8a (patch) | |
tree | 023ba2cb9131d95f5176aaf7960de914b81386ca /tools/testing/selftests/tc-testing/tdc_config.py | |
parent | a5a5efe9998d6f28263324b8aa3e77a1b6cc465e (diff) | |
download | linux-181d6610f5311868f092d033f0273140dd44fb8a.tar.xz |
tc-testing: split config file
Move the config customization into a site-local file
tdc_config_local.py, so that updates of the tdc test
software does not require hand-editing of the config.
This patch includes a template for the site-local
customization file.
In addition, this makes it easy to revert to a stock
tdc environment for testing the test framework and/or
the core tests.
Also it makes it harder for any custom config to be
submitted back to the kernel tdc.
Signed-off-by: Brenda J. Butler <bjb@mojatatu.com>
Acked-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.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tdc_config.py b/tools/testing/selftests/tc-testing/tdc_config.py index b6352515c1b5..596558445713 100644 --- a/tools/testing/selftests/tc-testing/tdc_config.py +++ b/tools/testing/selftests/tc-testing/tdc_config.py @@ -17,3 +17,17 @@ NAMES = { # Name of the namespace to use 'NS': 'tcut' } + + +ENVIR = { } + +# put customizations in tdc_config_local.py +try: + from tdc_config_local import * +except ImportError as ie: + pass + +try: + NAMES.update(EXTRA_NAMES) +except NameError as ne: + pass |