summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/sendkeys.py2
-rwxr-xr-xscripts/test-disk.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/sendkeys.py b/scripts/sendkeys.py
index 5d1692c..1c97b33 100755
--- a/scripts/sendkeys.py
+++ b/scripts/sendkeys.py
@@ -6,7 +6,7 @@ Each positional argument is one line: it is typed character by character
6test script without a display. 6test script without a display.
7 7
8Usage: 8Usage:
9 sendkeys.py "ls /disk" "echo hi > /disk/a.txt" "poweroff" 9 sendkeys.py "ls /disk" "echo hi WRITING /disk/a.txt" "poweroff"
10 sendkeys.py --sock /tmp/qmon.sock "date" 10 sendkeys.py --sock /tmp/qmon.sock "date"
11 11
12Environment: QMON_SOCK (default: /tmp/qmon.sock) 12Environment: QMON_SOCK (default: /tmp/qmon.sock)
diff --git a/scripts/test-disk.sh b/scripts/test-disk.sh
index f7337ef..11a9b05 100755
--- a/scripts/test-disk.sh
+++ b/scripts/test-disk.sh
@@ -99,14 +99,14 @@ VOL_UID="$(grep -a 'fat: mounted' "$LOG" | sed -n 's/.*at \/disk\/\([^ )]*\).*/\
99[ -n "$VOL_UID" ] || fail "no FAT32 volume was mounted (look for 'fat: mounted' in the log)" 99[ -n "$VOL_UID" ] || fail "no FAT32 volume was mounted (look for 'fat: mounted' in the log)"
100echo " mounted volume UID: $VOL_UID" 100echo " mounted volume UID: $VOL_UID"
101 101
102echo "==> 4/6 drive the shell (ls / mkdir / echo > / cat / poweroff)" 102echo "==> 4/6 drive the shell (ls / mkdir / echo WRITING / cat / poweroff)"
103# The filename is deliberately >13 chars so the FAT LFN path gets 103# The filename is deliberately >13 chars so the FAT LFN path gets
104# multi-entry entries (they're stored last-first on disk). 104# multi-entry entries (they're stored last-first on disk).
105TESTFILE="disk-test-$STAMP.txt" 105TESTFILE="disk-test-$STAMP.txt"
106python3 "$SCRIPT_DIR/sendkeys.py" --sock "$SOCK" \ 106python3 "$SCRIPT_DIR/sendkeys.py" --sock "$SOCK" \
107 "ls /disk" \ 107 "ls /disk" \
108 "mkdir /disk/$VOL_UID/sub" \ 108 "mkdir /disk/$VOL_UID/sub" \
109 "echo disk-test-$STAMP > /disk/$VOL_UID/sub/$TESTFILE" \ 109 "echo disk-test-$STAMP WRITING /disk/$VOL_UID/sub/$TESTFILE" \
110 "cat /disk/$VOL_UID/sub/$TESTFILE" \ 110 "cat /disk/$VOL_UID/sub/$TESTFILE" \
111 "poweroff" 111 "poweroff"
112 112