summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordd <dd@wx.tnyzeq.icu>2024-06-25 09:08:42 +0200
committerdd <dd@wx.tnyzeq.icu>2024-06-25 09:08:42 +0200
commitb1c6ac8511364abfdcb5d4f7f274817d654b7b71 (patch)
tree9b2272442251b8cf085163c4fbbaf071000f09f6
parentf13c8a245a31589146506e7956b77eabc1c4c86d (diff)
downloadvyos-build-b1c6ac8511364abfdcb5d4f7f274817d654b7b71.tar.gz
vyos-build-b1c6ac8511364abfdcb5d4f7f274817d654b7b71.zip
testsuite: improved sandbox mode
-rwxr-xr-xscripts/check-qemu-install8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index ab4cbe14..bf433baa 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -415,6 +415,14 @@ try:
c.sendline("")
c.logfile = None
c.interact()
+ if not args.keep:
+ log.info("SANDBOX: removing disk file: %s" % args.disk)
+ try:
+ os.remove(args.disk)
+ if diskname_raid:
+ os.remove(diskname_raid)
+ except Exception:
+ pass
log.info("SANDBOX: end")
exit(0)