diff --git a/tools/cooja/contiki_tests/sky_shell_exec_serial.csc b/tools/cooja/contiki_tests/sky_shell_exec_serial.csc
index ca07104d0..dc06f1f87 100644
--- a/tools/cooja/contiki_tests/sky_shell_exec_serial.csc
+++ b/tools/cooja/contiki_tests/sky_shell_exec_serial.csc
@@ -148,13 +148,21 @@ log.log("Starting hello world\n");
GENERATE_MSG(500, "continue");
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
write(mote, "exec hello-world.ce\n");
-WAIT_UNTIL(msg.contains("OK"));
-log.log("> ELF loader returned OK\n");
-WAIT_UNTIL(msg.contains("Hello, world"));
-log.log("> Hello world process started\n");
-
-log.log("Finished!\n");
-log.testOK();
+while (true) {
+ YIELD();
+ if (msg.contains("OK")) {
+ log.log("> ELF loader returned OK\n");
+ }
+ if (msg.contains("Hello, world")) {
+ log.log("> Hello world process started\n");
+ log.testOK();
+ }
+ if (msg.contains("Symbol not found")) {
+ log.log("> ELF loader error: " + msg +"\n");
+ log.testFailed();
+ }
+}
+
true
600