Open stanislowskij opened 1 month ago
This has been a known issue for a while.
cleaning/bats_tests.sh contains an assertion on line 167 that calls grep with the -P flag, which is an invalid flag in MacOS since it is using a BSD version of grep. See: https://stackoverflow.com/questions/77662026/grep-invalid-option-p-error-when-doing-regex-in-bash-script
cleaning/bats_tests.sh
grep
-P
167 run bash -c "tar -ztf cleaned_$little.tgz | grep -P 'little_dir/file_\d+$' | wc -l"
There are a few solutions to this, but the easiest might be to just clarify that this happens, and encourage students to update their tooling using brew or do their work on the lab computers.
brew
This has been a known issue for a while.
cleaning/bats_tests.sh
contains an assertion on line 167 that callsgrep
with the-P
flag, which is an invalid flag in MacOS since it is using a BSD version ofgrep
. See: https://stackoverflow.com/questions/77662026/grep-invalid-option-p-error-when-doing-regex-in-bash-scriptThere are a few solutions to this, but the easiest might be to just clarify that this happens, and encourage students to update their tooling using
brew
or do their work on the lab computers.