From f14d70e09251f25cb6a08a05d8dfab9885e5be95 Mon Sep 17 00:00:00 2001 From: dd Date: Mon, 24 Jun 2024 20:14:22 +0200 Subject: testsuite: added sandbox mode --- scripts/check-qemu-install | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index b3d9f3a1..0c3aad6c 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -74,7 +74,7 @@ parser.add_argument('--configtest', help='Execute load/commit config tests', action='store_true', default=False) parser.add_argument('--qemu-cmd', help='Only generate QEMU launch command', action='store_true', default=False) - +parser.add_argument('--sandbox', help='Interactive sandbox mode', action='store_true', default=False) args = parser.parse_args() @@ -377,6 +377,18 @@ try: c.sendline('sudo systemctl stop vyos-configd.service &> /dev/null') c.expect(op_mode_prompt) + ################################################# + # Sandbox mode + ################################################# + + if args.sandbox: + log.info("SANDBOX: now you are in control!") + c.sendline("") + c.logfile = None + c.interact() + log.info("SANDBOX: end") + exit(0) + ################################################# # Basic Configmode/Opmode switch ################################################# -- cgit v1.2.3