File tree Expand file tree Collapse file tree 2 files changed +2
-25
lines changed Expand file tree Collapse file tree 2 files changed +2
-25
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ export -f inject_test_code
2525# Inject Keyword
2626# #########################################
2727function 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments