Browse Source

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
pull/1739/head
miguel 2 years ago committed by MSilva95
parent
commit
8ce0dfcac1
  1. 0
      sh/tests/hard-perm/3/.gitkeep
  2. 3
      sh/tests/in-the-dark_test.sh
  3. 2
      subjects/devops/in-the-dark/README.md

3
sh/tests/in-the-dark_test.sh

@ -12,14 +12,13 @@ challenge() {
submitted=$(cd "$1" && bash "$script_dirS"/$FILENAME) submitted=$(cd "$1" && bash "$script_dirS"/$FILENAME)
expected=$(cd "$1" && bash "$script_dirS"/solutions/in-the-dark.sh) expected=$(cd "$1" && bash "$script_dirS"/solutions/in-the-dark.sh)
diff <(echo "$submitted") <(echo "$expected") diff <(echo "$submitted") <(echo "$expected")
echo $submitted
} }
# True if FILE exists and is a regular file # True if FILE exists and is a regular file
if [ -f ${FILENAME} ]; then if [ -f ${FILENAME} ]; then
# FILE exists and it's not empty # FILE exists and it's not empty
if [ -s ${FILENAME} ]; then if [ -s ${FILENAME} ]; then
challenge ../../subjects
challenge . challenge .
else else
echo "The file exist but is empty" echo "The file exist but is empty"

2
subjects/devops/in-the-dark/README.md

@ -10,7 +10,7 @@ Expected output:
```console ```console
$ ./in-the-dark.sh $ ./in-the-dark.sh
[1]+ Running "Your running job" [1]+ Running "Your running job, this is just an example of output"
news_amazon.txt news_amazon.txt
model_forecasts.txt model_forecasts.txt
Ecommerce_purchases.txt Ecommerce_purchases.txt

Loading…
Cancel
Save