From 889f8646efadcbacf1ebc9ba9618de2ccb64a211 Mon Sep 17 00:00:00 2001 From: Anas Husseini Date: Wed, 6 Nov 2024 15:17:51 +0200 Subject: [PATCH] split chroot command in test --- tests/spread/integration/erlang/task.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/spread/integration/erlang/task.yaml b/tests/spread/integration/erlang/task.yaml index 30d240a7a..725dc0e47 100644 --- a/tests/spread/integration/erlang/task.yaml +++ b/tests/spread/integration/erlang/task.yaml @@ -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