From 3521397eed7e532b4739a15bd5c1559e29099767 Mon Sep 17 00:00:00 2001 From: Alex Couture-Beil Date: Fri, 3 Nov 2023 09:35:39 -0700 Subject: [PATCH] make it obvious when the confit test passes (#3451) The final stage of the config-test is to check for an error case (via grep), this causes the last line to be output as: ./tests/config+test | --> RUN cat output.txt | grep 'Error: read config: failed to read from /home/testuser/.earthly/config.yml: open /home/testuser/.earthly/config.yml: permission denied' ./tests/config+test | Error: read config: failed to read from /home/testuser/.earthly/config.yml: open /home/testuser/.earthly/config.yml: permission denied which is not obvious at a quick glance. Now we will print a final "config test passed" line. Signed-off-by: Alex Couture-Beil --- tests/config/Earthfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/config/Earthfile b/tests/config/Earthfile index 4a4d2a4e..650fc525 100644 --- a/tests/config/Earthfile +++ b/tests/config/Earthfile @@ -108,6 +108,9 @@ test: RUN ! earthly --verbose +hello > output.txt 2>&1 RUN cat output.txt | grep 'Error: read config: failed to read from /home/testuser/.earthly/config.yml: open /home/testuser/.earthly/config.yml: permission denied' + # make it obvious that this test passed, due to the previous grep displaying "Error: ..." when it passes + RUN echo "config test passed" + RUN_EARTHLY_ARGS: COMMAND