Skip to content

Commit 4795d39

Browse files
committed
Fix bug when pruning test elements
1 parent 612b54c commit 4795d39

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `phpunit-failed-runner` will be documented in this file
44

5+
## 1.1.1 - 2021-07-18
6+
7+
- Fix bug in bash script when pruning test elements
8+
59
## 1.1.0 - 2021-07-18
610

711
- Removes log file once all tests have passed

phpunit-failed-runner

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ if test -f "$logfile"; then
1313
./vendor/bin/phpunit --filter "'$failed_tests'"
1414

1515
# Strip out everything except the failed tests
16-
xmlstarlet tr ./vendor/chrisdicarlo/phpunit-failed-runner/prune.xsl testdox.xml > testdox.xml
16+
xmlstarlet tr ./vendor/chrisdicarlo/phpunit-failed-runner/prune.xsl testdox.xml > testdoxTMP.xml
17+
mv testdoxTMP.xml testdox.xml
1718
fi
1819

1920
# If there are no more failed tests, remove the log file
@@ -29,7 +30,8 @@ else
2930
./vendor/bin/phpunit
3031

3132
# Strip out everything except the failed tests
32-
xmlstarlet tr ./vendor/chrisdicarlo/phpunit-failed-runner/prune.xsl testdox.xml > testdox.xml
33+
xmlstarlet tr ./vendor/chrisdicarlo/phpunit-failed-runner/prune.xsl testdox.xml > testdoxTMP.xml
34+
mv testdoxTMP.xml testdox.xml
3335
fi
3436

3537
exit 0

0 commit comments

Comments
 (0)