summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-21 21:22:13 +0200
committerChristian Breunig <christian@breunig.cc>2024-05-26 08:32:18 +0200
commitc15ee875a6ed6d2f053ad0dd6d576b93a6ea858f (patch)
tree07e37d04a8e3434d7fa689e7018e8f5c54f8868b /smoketest/scripts/cli
parent9301c507f91ea40fc0d4d86cf708a7ba6d3b0bb9 (diff)
downloadvyos-1x-c15ee875a6ed6d2f053ad0dd6d576b93a6ea858f.tar.gz
vyos-1x-c15ee875a6ed6d2f053ad0dd6d576b93a6ea858f.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 (cherry picked from commit 0cb4294fdfe5ae0e0e8fd06436f38b67f16413a2)
Diffstat (limited to 'smoketest/scripts/cli')
-rw-r--r--smoketest/scripts/cli/base_vyostest_shim.py4
1 files changed, 3 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