mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-04 17:53:07 +00:00
sd_card: remove disk image after test
This commit is contained in:
parent
3758cb056d
commit
d3884c67ad
@ -86,4 +86,6 @@ if { [file exists $disk_image] == 0 } then {
|
|||||||
|
|
||||||
run_genode_until forever
|
run_genode_until forever
|
||||||
|
|
||||||
|
exec rm $disk_image
|
||||||
|
|
||||||
# vi: set ft=tcl :
|
# vi: set ft=tcl :
|
||||||
|
@ -91,9 +91,9 @@ build_boot_image $boot_modules
|
|||||||
# If we run on qemu, provide a virtual disk
|
# If we run on qemu, provide a virtual disk
|
||||||
#
|
#
|
||||||
|
|
||||||
|
set disk_image "bin/sd_card.img"
|
||||||
if {[have_include power_on/qemu]} {
|
if {[have_include power_on/qemu]} {
|
||||||
|
|
||||||
set disk_image "bin/sd_card.img"
|
|
||||||
if { [file exists $disk_image] == 0 } then {
|
if { [file exists $disk_image] == 0 } then {
|
||||||
catch { exec dd if=/dev/zero of=$disk_image bs=1M count=512 } }
|
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
|
run_genode_until "--- SD card benchmark finished ---" 120
|
||||||
|
|
||||||
|
exec rm -f $disk_image
|
||||||
|
Loading…
x
Reference in New Issue
Block a user