diff --git a/bin/test-exercise b/bin/test-exercise index cccc6577f..a7aaa9ac1 100755 --- a/bin/test-exercise +++ b/bin/test-exercise @@ -72,7 +72,10 @@ fi # eliminate #[ignore] lines from tests for test in "$exercise/tests/*.rs"; do - sed -i '/\[ignore\]/d' $test + sed -i -e '/#\[ignore\]/{ + s/#\[ignore\]\s*// + /^\s*$/d + }' $test done # run tests from within exercise directory