summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordd <dd@wx.tnyzeq.icu>2024-06-24 20:14:22 +0200
committerdd <dd@wx.tnyzeq.icu>2024-06-24 20:14:22 +0200
commit9c509c9afd4a11774c18d90dee72bd06778da62d (patch)
tree55fa1ba762982947d16f2b3e1d1c627c6dcaa50f
parented89f8f3b4517105d23d6fd3471179f044d3069a (diff)
downloadvyos-build-9c509c9afd4a11774c18d90dee72bd06778da62d.tar.gz
vyos-build-9c509c9afd4a11774c18d90dee72bd06778da62d.zip
testsuite: added sandbox mode
-rwxr-xr-xscripts/check-qemu-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index fb30efaf..fd9d40c0 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -72,6 +72,7 @@ parser.add_argument('--no-interfaces', help='Execute testsuite without interface
action='store_true', default=False)
parser.add_argument('--configtest', help='Execute load/commit config tests',
action='store_true', default=False)
+parser.add_argument('--sandbox', help='Interactive sandbox mode', action='store_true', default=False)
args = parser.parse_args()
@@ -372,6 +373,14 @@ try:
c.sendline('sudo systemctl stop vyos-configd.service &> /dev/null')
c.expect(op_mode_prompt)
+ 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
#################################################