From: Denys Vlasenko Date: Tue, 24 Mar 2015 19:54:26 +0000 (+0100) Subject: qemu_multiarch_testing/*: make it easier to do debug in sandboxes X-Git-Tag: v4.11~542 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=602d717a62bf383804055cf68a32d8a09d85ad96;p=strace qemu_multiarch_testing/*: make it easier to do debug in sandboxes Signed-off-by: Denys Vlasenko --- diff --git a/qemu_multiarch_testing/README b/qemu_multiarch_testing/README index 3dc5581f..9e4ef006 100644 --- a/qemu_multiarch_testing/README +++ b/qemu_multiarch_testing/README @@ -39,3 +39,11 @@ And these did not: system-image-m68k - qemu-system-m68k: -M q800: Unsupported machine type system-image-mips64 - init dies before reaching /mnt/init system-image-sh4 - hdc does not mount (no support for 2 disks) + + +To debug a build problem in one of sandboxes, change keep_hdb +to "keep_hdb=true" in parallel-build-hdc-img.sh + +This preserves system-image-DIR1/hdb.img after the build, +so you can go into system-image-DIR1 and run +"HDB=hdb.img ./dev-environment.sh" to debug the problem. diff --git a/qemu_multiarch_testing/parallel-build-hdc-img.sh b/qemu_multiarch_testing/parallel-build-hdc-img.sh index d98f954c..8d273673 100755 --- a/qemu_multiarch_testing/parallel-build-hdc-img.sh +++ b/qemu_multiarch_testing/parallel-build-hdc-img.sh @@ -1,13 +1,14 @@ #!/bin/sh export HDBMEGS=64 +keep_hdb=false build_in_dir() { cd "$1" || exit 1 rm -f hdb.img nice -n10 time ./native-build.sh ../hdc.img - rm -f hdb.img + $keep_hdb || rm -f hdb.img echo >&3 "Finished: $1" }