]> granicus.if.org Git - strace/commitdiff
qemu_multiarch_testing/*: make it easier to do debug in sandboxes
authorDenys Vlasenko <dvlasenk@redhat.com>
Tue, 24 Mar 2015 19:54:26 +0000 (20:54 +0100)
committerDenys Vlasenko <dvlasenk@redhat.com>
Tue, 24 Mar 2015 19:54:26 +0000 (20:54 +0100)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
qemu_multiarch_testing/README
qemu_multiarch_testing/parallel-build-hdc-img.sh

index 3dc5581f2707f75780b6c9597530aaf05cb65edb..9e4ef006907bac26470cd7309d836fa4c1f5984f 100644 (file)
@@ -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.
index d98f954c460f0bc0c549eda527603396f31ac969..8d2736732911d8fd8db073de3cfa97be412ffa4e 100755 (executable)
@@ -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"
 }