Skip to content

Commit

Permalink
split chroot command in test
Browse files Browse the repository at this point in the history
  • Loading branch information
linostar committed Nov 6, 2024
1 parent fcf9413 commit 889f864
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/spread/integration/erlang/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ execute: |
# test erl eval
chroot "$rootfs" /usr/bin/erl -noshell -eval 'io:format("Erlang OK~n"), halt().' | grep "Erlang OK"
# test escript by executing a simple script
chroot "$rootfs" echo '#!/usr/bin/escript' > test_script && echo 'main(_) -> io:format("escript OK~n").' >> test_script && chmod +x test_script && /usr/bin/escript test_script
chroot "$rootfs" echo 'main(_) -> io:format("escript OK~n").' >> test_script
chroot "$rootfs" chmod +x test_script
chroot "$rootfs" /usr/bin/escript test_script
# test start_embedded to start the embedded environment
chroot "$rootfs" /usr/bin/start_embedded
# test runcgi.sh from erlang-inets
Expand Down

0 comments on commit 889f864

Please sign in to comment.