diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-21 21:22:13 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-04-21 21:24:19 +0200 |
commit | 0cb4294fdfe5ae0e0e8fd06436f38b67f16413a2 (patch) | |
tree | bfc84cadc4d88c32c74a3db24763aeee0535492d | |
parent | 6331040d560641921f44517298271e301ce52646 (diff) | |
download | vyos-1x-0cb4294fdfe5ae0e0e8fd06436f38b67f16413a2.tar.gz vyos-1x-0cb4294fdfe5ae0e0e8fd06436f38b67f16413a2.zip |
smoketest: support dynamic enable of smoketest debugging
$ touch /tmp/vyos.smoketest.debug
will enable dynamic debugging of the smoketests - showing the appropriate CLI
commands on stdout
-rw-r--r-- | smoketest/scripts/cli/base_vyostest_shim.py | 4 | ||||
-rwxr-xr-x | src/init/vyos-router | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/base_vyostest_shim.py b/smoketest/scripts/cli/base_vyostest_shim.py index c49d3e76c..efaa74fe0 100644 --- a/smoketest/scripts/cli/base_vyostest_shim.py +++ b/smoketest/scripts/cli/base_vyostest_shim.py @@ -1,4 +1,4 @@ -# Copyright (C) 2021-2023 VyOS maintainers and contributors +# Copyright (C) 2021-2024 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -47,6 +47,8 @@ class VyOSUnitTestSHIM: def setUpClass(cls): cls._session = ConfigSession(os.getpid()) cls._session.save_config(save_config) + if os.path.exists('/tmp/vyos.smoketest.debug'): + cls.debug = True pass @classmethod diff --git a/src/init/vyos-router b/src/init/vyos-router index 06fea140d..15e37df07 100755 --- a/src/init/vyos-router +++ b/src/init/vyos-router @@ -451,6 +451,7 @@ start () touch /tmp/vyos.ifconfig.debug touch /tmp/vyos.frr.debug touch /tmp/vyos.container.debug + touch /tmp/vyos.smoketest.debug fi log_action_begin_msg "Mounting VyOS Config" |