From 8ce0dfcac111aeda8c7e24ca5f6f6b9137ae8f56 Mon Sep 17 00:00:00 2001 From: miguel Date: Wed, 18 Jan 2023 17:30:29 +0000 Subject: [PATCH] fix(devops): fix folder in the hard-perm exercise remove unnecessary test in the exercise in-the-dark add clarification in the readme of in-the-dark --- sh/tests/hard-perm/3/.gitkeep | 0 sh/tests/in-the-dark_test.sh | 3 +-- subjects/devops/in-the-dark/README.md | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 sh/tests/hard-perm/3/.gitkeep diff --git a/sh/tests/hard-perm/3/.gitkeep b/sh/tests/hard-perm/3/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/sh/tests/in-the-dark_test.sh b/sh/tests/in-the-dark_test.sh index fcb3bd57..dab994dc 100755 --- a/sh/tests/in-the-dark_test.sh +++ b/sh/tests/in-the-dark_test.sh @@ -12,14 +12,13 @@ challenge() { submitted=$(cd "$1" && bash "$script_dirS"/$FILENAME) expected=$(cd "$1" && bash "$script_dirS"/solutions/in-the-dark.sh) diff <(echo "$submitted") <(echo "$expected") + echo $submitted } # True if FILE exists and is a regular file if [ -f ${FILENAME} ]; then # FILE exists and it's not empty if [ -s ${FILENAME} ]; then - challenge ../../subjects - challenge . else echo "The file exist but is empty" diff --git a/subjects/devops/in-the-dark/README.md b/subjects/devops/in-the-dark/README.md index 814abe9b..f56a5233 100644 --- a/subjects/devops/in-the-dark/README.md +++ b/subjects/devops/in-the-dark/README.md @@ -10,7 +10,7 @@ Expected output: ```console $ ./in-the-dark.sh -[1]+ Running "Your running job" +[1]+ Running "Your running job, this is just an example of output" news_amazon.txt model_forecasts.txt Ecommerce_purchases.txt