dde_rump: use 'assert'-proc in run scripts

Issue #5432
This commit is contained in:
Roman Iten 2025-02-26 15:14:32 +01:00 committed by Norman Feske
parent 1e518cb606
commit d5ff0877d3
4 changed files with 9 additions and 11 deletions

View File

@ -1,6 +1,6 @@
if {[get_cmd_switch --autopilot] && [have_board virt_qemu_riscv]} { if {[have_cmd_switch --autopilot]} {
puts "Autopilot mode is not supported on this platform." assert {![have_board virt_qemu_riscv]} \
exit 0 "Autopilot mode is not supported on this platform."
} }
set mkfs_cmd [installed_command mke2fs] set mkfs_cmd [installed_command mke2fs]

View File

@ -1,10 +1,8 @@
if {[have_spec arm]} { assert {[have_spec arm_v7] || ![have_spec arm]}
assert_spec arm_v7
}
if {[get_cmd_switch --autopilot] && [have_board virt_qemu_riscv]} { if {[have_cmd_switch --autopilot]} {
puts "Autopilot mode is not supported on this platform." assert {![have_board virt_qemu_riscv]} \
exit 0 "Autopilot mode is not supported on this platform."
} }
build { build {

View File

@ -1,4 +1,4 @@
if {[have_spec arm]} { assert_spec arm_v7 } assert {[have_spec arm_v7] || ![have_spec arm]}
build { build {
core lib/ld init timer lib/vfs lib/libc core lib/ld init timer lib/vfs lib/libc

View File

@ -1,4 +1,4 @@
if {[have_spec arm]} { assert_spec arm_v7 } assert {[have_spec arm_v7] || ![have_spec arm]}
build { build {
core lib/ld init timer lib/vfs core lib/ld init timer lib/vfs