Skip to content

Commit 5d9cc23

Browse files
authored
Merge pull request #396 from coriolinus/improve-test-exercise-sed-excise-ignore
test-exercise: sed now more precisely excises #[ignore]
2 parents 45b5ad6 + 1aeef83 commit 5d9cc23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/test-exercise

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ fi
7272

7373
# eliminate #[ignore] lines from tests
7474
for test in "$exercise/tests/*.rs"; do
75-
sed -i '/\[ignore\]/d' $test
75+
sed -i -e '/#\[ignore\]/{
76+
s/#\[ignore\]\s*//
77+
/^\s*$/d
78+
}' $test
7679
done
7780

7881
# run tests from within exercise directory

0 commit comments

Comments
 (0)