sd_card: remove disk image after test

This commit is contained in:
Christian Helmuth 2017-03-20 11:37:41 +01:00
parent 3758cb056d
commit d3884c67ad
2 changed files with 5 additions and 1 deletions

View File

@ -86,4 +86,6 @@ if { [file exists $disk_image] == 0 } then {
run_genode_until forever
exec rm $disk_image
# vi: set ft=tcl :

View File

@ -91,9 +91,9 @@ build_boot_image $boot_modules
# If we run on qemu, provide a virtual disk
#
set disk_image "bin/sd_card.img"
if {[have_include power_on/qemu]} {
set disk_image "bin/sd_card.img"
if { [file exists $disk_image] == 0 } then {
catch { exec dd if=/dev/zero of=$disk_image bs=1M count=512 } }
@ -102,3 +102,5 @@ if {[have_include power_on/qemu]} {
}
run_genode_until "--- SD card benchmark finished ---" 120
exec rm -f $disk_image