[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-drill 20c90836aa 169/251: Speed up robot tests with po
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-drill 20c90836aa 169/251: Speed up robot tests with polling |
Date: |
Mon, 17 Jan 2022 18:59:13 -0500 (EST) |
branch: elpa/org-drill
commit 20c90836aa10045db330699439416197df9fc761
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Speed up robot tests with polling
---
robot/all-card-run.sh | 1 -
robot/basic-run.sh | 4 +---
robot/leitner-run.sh | 1 -
robot/robot.sh | 18 ++++++++++++------
robot/spanish-run.sh | 1 -
5 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/robot/all-card-run.sh b/robot/all-card-run.sh
index 3d70fc0dbb..059f7d4a79 100755
--- a/robot/all-card-run.sh
+++ b/robot/all-card-run.sh
@@ -31,7 +31,6 @@ function run_drill {
launch_emacs $this_dir/all-card-run.el $card_no
{
- sleep 1
find_bot
## Run once with default options
diff --git a/robot/basic-run.sh b/robot/basic-run.sh
index 9e0d69cfa5..0eb5d1137c 100755
--- a/robot/basic-run.sh
+++ b/robot/basic-run.sh
@@ -5,7 +5,7 @@ set -e
function run_drill {
## Org-drill should be running at this point, so give three answers
## with a score of file
- sleep_big
+ sleep_small
echo answer one
send_answer
@@ -19,7 +19,6 @@ function run_drill {
## Press any key to continue
echo press any key to continue
retn
- sleep_small
echo Save file
key y
@@ -32,7 +31,6 @@ source $this_dir/robot.sh
launch_emacs $this_dir/basic-run.el
{
- sleep 1
find_bot
## Run once with default options
diff --git a/robot/leitner-run.sh b/robot/leitner-run.sh
index d91dd78fd8..270d7435d5 100755
--- a/robot/leitner-run.sh
+++ b/robot/leitner-run.sh
@@ -25,7 +25,6 @@ source $this_dir/robot.sh
launch_emacs $this_dir/leitner-run.el
{
- sleep 1
find_bot
## Run once with default options
diff --git a/robot/robot.sh b/robot/robot.sh
index 8b7e9a31fd..c5cc33da5b 100644
--- a/robot/robot.sh
+++ b/robot/robot.sh
@@ -69,10 +69,16 @@ function wait_emacs {
}
function find_bot {
- window_id=`xdotool search --name "emacs-bot"`
- if [ -z "$window_id" ]
- then
- echo "Could not find window ID for Emacs-bot"
- exit 1
- fi
+ for i in `seq 1 20`;
+ do
+ window_id=`xdotool search --name "emacs-bot"`
+ if [ -z "$window_id" ]
+ then
+ sleep 0.1
+ else
+ return
+ fi
+ done
+ echo "Could not find window ID for Emacs-bot"
+ exit 1
}
diff --git a/robot/spanish-run.sh b/robot/spanish-run.sh
index c8cf19ad11..9f20c08ae0 100755
--- a/robot/spanish-run.sh
+++ b/robot/spanish-run.sh
@@ -31,7 +31,6 @@ function run_drill {
launch_emacs $this_dir/spanish-run.el
{
- sleep 1
find_bot
## Run once with default options
- [nongnu] elpa/org-drill c1c57adea9 133/251: Remove dormant-entry-count, (continued)
- [nongnu] elpa/org-drill c1c57adea9 133/251: Remove dormant-entry-count, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill a923ba2c90 145/251: Move exit-kind to slot, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 9555e487d4 143/251: Fix presentation-in-buffer, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0286de5402 139/251: Remove unneed form, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill ba0a346583 125/251: Removed generated file, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill ffc04493f8 136/251: Remove more variables, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill d47080e3bc 121/251: Remove generated file, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill fd3efa233e 127/251: Port to cl-lib, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c49af4a9b3 155/251: Replace more non-namespaced commands, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 118e76ff9c 154/251: Replace more non-namespaced command, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 20c90836aa 169/251: Speed up robot tests with polling,
ELPA Syncer <=
- [nongnu] elpa/org-drill 1801524221 178/251: Fix call to format, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 2f056255e6 192/251: Re-namespace with-hidden-cloze-text, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 61807adc7f 166/251: Remove spell-number.el dependency, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 0eaacf2a2d 176/251: Remove legacy code, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 8ebb0d27d6 194/251: package-lint cleaning, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c59c49a4df 172/251: Remove call to cl, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill c65634b454 195/251: Remove hi-lock dependency, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 5d4f60d49d 167/251: Silence more unused variable messages, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 3b0f44592f 186/251: Add compatibility hacks to support org-mode 8, ELPA Syncer, 2022/01/17
- [nongnu] elpa/org-drill 2811c3f562 174/251: Replace dynamic scoping with let, ELPA Syncer, 2022/01/17