Skip to content
Snippets Groups Projects
Unverified Commit 021f07e0 authored by Nicolas Tsiftes's avatar Nicolas Tsiftes Committed by GitHub
Browse files

Merge pull request #1811 from pjonsson/proper-exit

tests: exit with legal value
parents b6f58c02 6b90d930
No related branches found
No related tags found
No related merge requests found
...@@ -7,18 +7,18 @@ TEST_CODE_DIR=code-result-visualization ...@@ -7,18 +7,18 @@ TEST_CODE_DIR=code-result-visualization
make -C ${TEST_CODE_DIR} clean make -C ${TEST_CODE_DIR} clean
make -C ${TEST_CODE_DIR} 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 # 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 # check that PDF files are created
ls plot_charge.pdf || exit -1 ls plot_charge.pdf || exit 1
ls plot_duty_cycle_joined.pdf || exit -1 ls plot_duty_cycle_joined.pdf || exit 1
ls plot_duty_cycle.pdf || exit -1 ls plot_duty_cycle.pdf || exit 1
ls plot_par.pdf || exit -1 ls plot_par.pdf || exit 1
ls plot_pdr.pdf || exit -1 ls plot_pdr.pdf || exit 1
ls plot_rpl_switches.pdf || exit -1 ls plot_rpl_switches.pdf || exit 1
# success # success
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment