Skip to content
Snippets Groups Projects
Commit 6b90d930 authored by Peter A. Jonsson's avatar Peter A. Jonsson
Browse files

tests: exit with legal value

The call to exit needs a natural value
as argument, change -1 to 1.
parent b6f58c02
No related branches found
No related tags found
No related merge requests found
......@@ -7,18 +7,18 @@ TEST_CODE_DIR=code-result-visualization
make -C ${TEST_CODE_DIR} clean
make -C ${TEST_CODE_DIR}
${CONTIKI}/examples/benchmarks/result-visualization/run-analysis.py ${TEST_CODE_DIR}/00-result-visualization.1.scriptlog > analysis.log || exit -1
${CONTIKI}/examples/benchmarks/result-visualization/run-analysis.py ${TEST_CODE_DIR}/00-result-visualization.1.scriptlog > analysis.log || exit 1
# check that some packets were sent and all were received
grep "PDR=100" analysis.log || exit -1
grep "PDR=100" analysis.log || exit 1
# check that PDF files are created
ls plot_charge.pdf || exit -1
ls plot_duty_cycle_joined.pdf || exit -1
ls plot_duty_cycle.pdf || exit -1
ls plot_par.pdf || exit -1
ls plot_pdr.pdf || exit -1
ls plot_rpl_switches.pdf || exit -1
ls plot_charge.pdf || exit 1
ls plot_duty_cycle_joined.pdf || exit 1
ls plot_duty_cycle.pdf || exit 1
ls plot_par.pdf || exit 1
ls plot_pdr.pdf || exit 1
ls plot_rpl_switches.pdf || exit 1
# success
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment