From 3c356dfc5a0f99d022f4bd9c6f3a2c93863c0529 Mon Sep 17 00:00:00 2001 From: Phillip Lord Date: Sat, 22 Jun 2019 17:42:06 +0100 Subject: Fix robot testing and reference to drill-typed-answer --- robot/all-card-run.sh | 1 - robot/robot.el | 2 ++ robot/robot.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'robot') diff --git a/robot/all-card-run.sh b/robot/all-card-run.sh index 059f7d4..25d560d 100755 --- a/robot/all-card-run.sh +++ b/robot/all-card-run.sh @@ -36,6 +36,5 @@ launch_emacs $this_dir/all-card-run.el $card_no ## Run once with default options run_drill - wait_emacs } || cat robot/failure.txt diff --git a/robot/robot.el b/robot/robot.el index a9813d9..ef1f4c2 100644 --- a/robot/robot.el +++ b/robot/robot.el @@ -48,6 +48,8 @@ (defun robot-dump () (dump-buffer "*Backtrace*" "failure.txt") (dump-buffer "*Messages*" "messages.txt") + (princ "Killing Emacs after error\n" + 'external-debugging-output) (kill-emacs -1)) (defun robot-dump-messages () diff --git a/robot/robot.sh b/robot/robot.sh index f901b67..12ac79e 100644 --- a/robot/robot.sh +++ b/robot/robot.sh @@ -65,7 +65,7 @@ function retn { } function wait_emacs { - wait $emacs_process_pid + wait $emacs_process_pid || exit 1 } function find_bot { -- cgit v1.2.3