File tree 2 files changed +17
-0
lines changed 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1475,3 +1475,18 @@ test_set_port () {
1475
1475
port=$(( $port + ${GIT_TEST_STRESS_JOB_NR:- 0} ))
1476
1476
eval $var =$port
1477
1477
}
1478
+
1479
+ test_clear_watchman () {
1480
+ if test $GIT_TEST_FSMONITOR -ne " "
1481
+ then
1482
+ watchman watch-list |
1483
+ grep " $TRASH_DIRECTORY " |
1484
+ sed " s/\t\" //g" |
1485
+ sed " s/\" ,//g" > repo-list
1486
+
1487
+ for repo in $( cat repo-list)
1488
+ do
1489
+ watchman watch-del " $repo "
1490
+ done
1491
+ fi
1492
+ }
Original file line number Diff line number Diff line change @@ -1072,6 +1072,8 @@ test_atexit_handler () {
1072
1072
# sure that the registered cleanup commands are run only once.
1073
1073
test : ! = " $test_atexit_cleanup " || return 0
1074
1074
1075
+ test_clear_watchman
1076
+
1075
1077
setup_malloc_check
1076
1078
test_eval_ " $test_atexit_cleanup "
1077
1079
test_atexit_cleanup=:
You can’t perform that action at this time.
0 commit comments