diff options
| author | dd <dd@wx.tnyzeq.icu> | 2024-06-25 09:08:01 +0200 |
|---|---|---|
| committer | dd <dd@wx.tnyzeq.icu> | 2024-06-25 09:08:01 +0200 |
| commit | abb760f219eb548bc7e2e3484872665797ff6142 (patch) | |
| tree | d58d8182b79dd55a3e0e2438ba5f801fed596c2b /scripts | |
| parent | f14d70e09251f25cb6a08a05d8dfab9885e5be95 (diff) | |
| download | vyos-build-abb760f219eb548bc7e2e3484872665797ff6142.tar.gz vyos-build-abb760f219eb548bc7e2e3484872665797ff6142.zip | |
testsuite: improved sandbox mode
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check-qemu-install | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 0c3aad6c..997b68d1 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -386,6 +386,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) |
