From f4c1a2a82568e120caf4c4de592e660aa16d40e2 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/spread/integration/erlang/task.yaml b/tests/spread/integration/erlang/task.yaml index 30d240a7a..517914baa 100644 --- a/tests/spread/integration/erlang/task.yaml +++ b/tests/spread/integration/erlang/task.yaml @@ -16,7 +16,11 @@ 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 + echo '#!/usr/bin/escript' > test_script + echo 'main(_) -> io:format("escript OK~n").' >> test_script + chmod +x test_script + mv test_script "$rootfs" + 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