From 02b507b839205982f36e3b0ee455168ecda8cb51 Mon Sep 17 00:00:00 2001 From: Phillip Lord Date: Mon, 17 Jun 2019 23:11:59 +0100 Subject: Add leitner robot test and fix --- robot/leitner-run.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 robot/leitner-run.sh (limited to 'robot/leitner-run.sh') diff --git a/robot/leitner-run.sh b/robot/leitner-run.sh new file mode 100755 index 0000000..7c76291 --- /dev/null +++ b/robot/leitner-run.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e + +function run_drill { + ## Org-drill should be running at this point, so give three answers + ## with a score of file + sleep_big + + echo answer one + send_answer + + echo answer two + send_answer + + echo answer three + send_answer +} + +this_dir="$(dirname "$0")" +source $this_dir/robot.sh + +##small_sleep=3 + +launch_emacs $this_dir/leitner-run.el + +{ + sleep 2 + find_bot + + ## Run once with default options + run_drill + + wait_emacs +} || cat robot/failure.txt -- cgit v1.2.3