From 11dac050fb16090fd5035380a6bf29178ffe5902 Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" <jonsson.peter.a@gmail.com> Date: Mon, 25 Apr 2022 12:02:33 +0200 Subject: [PATCH] tests: suppress Nashorn removal warning After the upgrade to Java 11, the simulation tests get the warning: Warning: Nashorn engine is planned to be removed from a future JDK release Supress the warning since it is an issue with Cooja and not relevant for the Contiki-NG tests. --- tests/simexec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/simexec.sh b/tests/simexec.sh index 31b8bcdf87..b1dc20a57f 100755 --- a/tests/simexec.sh +++ b/tests/simexec.sh @@ -28,7 +28,7 @@ for (( SEED=$BASESEED; SEED<$(($BASESEED+$RUNCOUNT)); SEED++ )); do echo -n "Running test $BASENAME with random Seed $SEED" # run simulation - java -Xshare:on -jar $CONTIKI/tools/cooja/dist/cooja.jar -nogui=$CSC -contiki=$CONTIKI -random-seed=$SEED > $BASENAME.$SEED.coojalog & + java -Xshare:on -Dnashorn.args=--no-deprecation-warning -jar $CONTIKI/tools/cooja/dist/cooja.jar -nogui=$CSC -contiki=$CONTIKI -random-seed=$SEED > $BASENAME.$SEED.coojalog & JPID=$! # Copy the log and only print "." if it changed -- GitLab