Skip to content

Commit f6bec19

Browse files
committed
debug: check output after watch
1 parent 4cf3b1a commit f6bec19

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

rewatch/tests/lock.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,21 @@ else
1414
fi
1515

1616
exit_watcher() {
17-
# Try to find child process, if not found just kill the process directly
17+
# kill watcher by removing lock file
1818
rm lib/rewatch.lock
1919
}
2020

2121
rewatch_bg watch > /dev/null 2>&1 &
2222
success "Watcher Started"
23+
ps
2324

2425
sleep 1
2526

2627
if rewatch build | grep 'Could not start Rewatch:' &> /dev/null;
2728
then
28-
# rm output.txt
2929
success "Lock is correctly set"
3030
exit_watcher
3131
else
32-
# rm output.txt
3332
error "Not setting lock correctly"
3433
exit_watcher
3534
exit 1

rewatch/tests/watch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ else
1212
fi
1313

1414
exit_watcher() {
15-
# we need to kill the parent process (rewatch)
15+
# kill watcher by removing lock file
1616
rm lib/rewatch.lock
1717
}
1818

0 commit comments

Comments
 (0)