Skip to content

Commit

Permalink
test: update shebang-direct test under emulation
Browse files Browse the repository at this point in the history
linux-user now resolves the full path name of the started
process: qemu/qemu@258bec3.
we should fix our patches in a follow-up.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Sep 8, 2023
1 parent 8b969b6 commit 5da9dbf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ execdirect() {
@test "shebang-direct" {
execdirect ./shebang.sh foo bar1
assert_success
assert_output "./printargs ./shebang.sh foo bar1"
if [ -n "$BINFMT_EMULATOR" ]; then
# FIXME: direct exec patches should be fixed to not prepend workdir
assert_output "./printargs /work/shebang.sh foo bar1"
else
assert_output "./printargs ./shebang.sh foo bar1"
fi
}

@test "relative-exec" {
Expand Down

0 comments on commit 5da9dbf

Please sign in to comment.