Browse Source

docs(file-struct): fixing test and removing folders

pull/1658/head
miguel 2 years ago committed by MSilva95
parent
commit
d8e7a606f0
  1. 6
      sh/tests/file-struct_test.sh
  2. 0
      sh/tests/solutions/file-struct.tar
  3. 0
      sh/tests/solutions/struct/0/.gitignore
  4. 0
      sh/tests/solutions/struct/1/.gitignore
  5. 0
      sh/tests/solutions/struct/2/.gitignore
  6. 0
      sh/tests/solutions/struct/3/text.txt
  7. 0
      sh/tests/solutions/struct/4/text2.txt
  8. 0
      sh/tests/solutions/struct/5/.gitignore
  9. 0
      sh/tests/solutions/struct/6/.gitignore
  10. 0
      sh/tests/solutions/struct/7/.gitignore
  11. 0
      sh/tests/solutions/struct/8/.gitignore
  12. 0
      sh/tests/solutions/struct/9/.gitignore
  13. 0
      sh/tests/solutions/struct/A/text3.txt
  14. 8
      subjects/devops/file-struct/README.md

6
sh/tests/file-struct_test.sh

@ -7,10 +7,10 @@ IFS='
print_content() { print_content() {
mkdir -p uncompressed mkdir -p uncompressed
tar -xpf done.tar -C uncompressed tar -xpf file-struct.tar -C uncompressed
tree uncompressed tree uncompressed
} }
submitted=$(cd student/struct && print_content) submitted=$(cd student && print_content)
expected=$(cd solutions/struct && print_content) expected=$(cd solutions && print_content)
diff <(echo "$submitted") <(echo "$expected") diff <(echo "$submitted") <(echo "$expected")

0
sh/tests/solutions/struct/done.tar → sh/tests/solutions/file-struct.tar

0
sh/tests/solutions/struct/0/.gitignore diff.vendored

0
sh/tests/solutions/struct/1/.gitignore diff.vendored

0
sh/tests/solutions/struct/2/.gitignore diff.vendored

0
sh/tests/solutions/struct/3/text.txt

0
sh/tests/solutions/struct/4/text2.txt

0
sh/tests/solutions/struct/5/.gitignore diff.vendored

0
sh/tests/solutions/struct/6/.gitignore diff.vendored

0
sh/tests/solutions/struct/7/.gitignore diff.vendored

0
sh/tests/solutions/struct/8/.gitignore diff.vendored

0
sh/tests/solutions/struct/9/.gitignore diff.vendored

0
sh/tests/solutions/struct/A/text3.txt

8
subjects/devops/file-struct/README.md

@ -23,15 +23,15 @@ struct/
└── text3.txt └── text3.txt
``` ```
Once it is done, use the command below to create the file `done.tar` to be submitted. Once it is done, use the command below to create the file `file-struct.tar` to be submitted.
```console ```console
$ tar -cf done.tar * $ tar -cf file-struct.tar *
$ ls $ ls
0 1 2 3 4 5 6 7 8 9 A done.tar 0 1 2 3 4 5 6 7 8 9 A file-struct.tar
``` ```
**Only `done.tar` should be submitted.** **Only `file-struct.tar` should be submitted.**
### Hints ### Hints

Loading…
Cancel
Save