Skip to content

Commit f057a22

Browse files
committed
Removed tests/preprocess.sh as it's already part of lib.sh
1 parent 691c4d9 commit f057a22

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

tests/lib.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export -f inject_test_code
2525
# Inject Keyword
2626
##########################################
2727
function sync_to_src_test() {
28-
echo "HEREEEEEE!"
2928
# Prepare source code directory for tests.
3029
rsync -r "${SRC_DIR:?}" "${SRC_TEST_DIR:?}"
3130

@@ -67,15 +66,14 @@ function os_test_up() {
6766

6867
# Keep polling QEMU monitor until we get our magic word!
6968
COMMAND_OUTPUT=""
69+
echo "Sending commands to QEMU and polling for the magic word '$1' every second."
7070
while true; do
71-
echo "Sending commands to QEMU."
7271
COMMAND_OUTPUT="$(echo -e 'screendump '${QEMU_SCREENSHOT:?}'\nprint $eax\nquit' | \
73-
nc 127.0.0.1 ${MONITOR_PORT:?})"
72+
nc 127.0.0.1 ${MONITOR_PORT:?} | tr -d '\0')"
7473
echo "$COMMAND_OUTPUT" | \
7574
grep -i "$TEST_MAGIC_WANT" && \
7675
echo "Magic Word Found! Continuing the test..." && \
7776
break
78-
echo "Magic word not found! Got: $COMMAND_OUTPUT"
7977
sleep 1s
8078
done
8179

tests/preprocess.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)