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]} {
puts "Autopilot mode is not supported on this platform."
exit 0
if {[have_cmd_switch --autopilot]} {
assert {![have_board virt_qemu_riscv]} \
"Autopilot mode is not supported on this platform."
}
set mkfs_cmd [installed_command mke2fs]

View File

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

View File

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