Skip to content

Commit b94deb2

Browse files
committed
escape hatch
1 parent 826ba0b commit b94deb2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

start

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ start_part_2() {
3838
tmux send-keys "~/aoc/test-runner $YEAR $DAY 2" Enter
3939
tmux select-pane -t top-right
4040
tmux send-keys C-c
41-
tmux send-keys "~/aoc/misc/browser $YEAR $DAY" Enter
41+
tmux send-keys "~/aoc/misc/browser $YEAR $DAY 1" Enter
4242
tmux select-pane -t left
4343
}
4444

test-runner

+8-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,14 @@ trap "cleanup" EXIT
5757
while true; do
5858
sleep 0.1
5959
clear
60-
./p${PART}.sh sample${PART}.txt \
61-
| validator solution${PART}.txt &
62-
PID=$!
60+
if [[ -z "$4" ]]; then
61+
./p${PART}.sh sample${PART}.txt \
62+
| validator solution${PART}.txt &
63+
PID=$!
64+
else
65+
spinner "" ./p${PART}.sh input.txt &
66+
PID=$!
67+
fi
6368

6469
inotifywait -qq ../../test-runner p1.sh p2.sh input.txt sample*.txt -e MODIFY -e MOVE_SELF
6570
pkill -TERM -P $PID &> /dev/null

0 commit comments

Comments
 (0)