ci/bare-metal: Fix exit code variable
`bm-init.sh` executes `init-stage1.sh` and then an `export`, but the latter command overwrite the exit code `$?`, so we need to put the first exit code into a variable. Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36356>
This commit is contained in:
parent
549f6cdb17
commit
c25b14fa23
1 changed files with 2 additions and 1 deletions
|
|
@ -4,11 +4,12 @@
|
|||
|
||||
# First stage: very basic setup to bring up network and /dev etc
|
||||
/init-stage1.sh
|
||||
INIT_STAGE1_EXIT_CODE=$?
|
||||
|
||||
export CURRENT_SECTION=dut_boot
|
||||
|
||||
# Second stage: run jobs
|
||||
test $? -eq 0 && /init-stage2.sh
|
||||
test $INIT_STAGE1_EXIT_CODE -eq 0 && /init-stage2.sh
|
||||
|
||||
# Wait until the job would have timed out anyway, so we don't spew a "init
|
||||
# exited" panic.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue