Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
update more exit statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaudill committed Apr 22, 2024
1 parent 6f8014e commit 4996b4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/multistage/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ setup () {
# Can’t run GCC.
run ch-run "$ch_img" -- gcc --version
echo "$output"
[[ $status -eq 1 ]]
[[ $status -eq 58 ]]
[[ $output = *'gcc: No such file or directory'* ]]

# No GCC or Make.
Expand Down
2 changes: 2 additions & 0 deletions test/build/50_ch-image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,8 @@ EOF
}

@test "ch-image modify" {
ch-image reset

run ch-image modify -c "echo foo" -c "echo bar" -- alpine:3.17 tmpimg
echo "$output"
[[ $status -eq 0 ]]
Expand Down
4 changes: 2 additions & 2 deletions test/run/ch-run_misc.bats
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ EOF
# empty argument to --bind
run ch-run -b '' "$ch_timg" -- /bin/true
echo "$output"
[[ $status -eq 1 ]]
[[ $status -eq 64 ]]
[[ $output = *'--bind: no source provided'* ]]

# source not provided
Expand Down Expand Up @@ -911,7 +911,7 @@ EOF
# image is file but not sqfs
run ch-run -vv ./fixtures/README -- /bin/true
echo "$output"
[[ $status -eq 1 ]]
[[ $status -eq 57 ]]
[[ $output = *'magic expected: 6873 7173; actual: 596f 7520'* ]]
[[ $output = *'unknown image type: '*'/fixtures/README'* ]]

Expand Down

0 comments on commit 4996b4e

Please sign in to comment.