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 1 year 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)
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"

2
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

Loading…
Cancel
Save