From 16b15c4f830c10d356be18b6c13fef93be00251d Mon Sep 17 00:00:00 2001 From: Emily Bourne Date: Mon, 8 Apr 2024 14:55:43 +0000 Subject: [PATCH] Report differences on sheath restart test The sheath restart test is occasionally failing. As detailed in !211 this is probably because the test requires bit reproducibility however it would be good to confirm this. This is tricky as the bug is not reliably reproducible. This MR therefore adds the `-r` flag to the `h5diff` command. This reports the differences which will allow us to have more information about this error the next time it appears. See merge request gysela-developpers/gyselalibxx!452 -------------------------------------------- --- tests/geometryXVx/sheath/test_sheath_restart.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/geometryXVx/sheath/test_sheath_restart.sh b/tests/geometryXVx/sheath/test_sheath_restart.sh index 09706a9d6..9e50149c4 100644 --- a/tests/geometryXVx/sheath/test_sheath_restart.sh +++ b/tests/geometryXVx/sheath/test_sheath_restart.sh @@ -45,21 +45,21 @@ cp "${RSTDIR}/sheath.yaml" sheath_restart.yaml sed -i 's/^ nbiter: .*/ nbiter: 2/' sheath_restart.yaml sed -i 's/^ time_diag: .*/ time_diag: 0.5/' sheath_restart.yaml -h5ls -d ${PWD}/VOICEXX_00006.h5/time_saved ${RSTDIR}/VOICEXX_00005.h5/time_saved -command="h5diff ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 time_saved" +h5ls -d ${PWD}/VOICEXX_00005.h5/time_saved ${RSTDIR}/VOICEXX_00005.h5/time_saved +command="h5diff -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 time_saved" eval $command if [ $? -ne 0 ]; then exit 1 fi -command="h5diff ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 electrostatic_potential" +command="h5diff -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 electrostatic_potential" eval $command if [ $? -ne 0 ]; then exit 1 fi -command="h5diff ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 fdistribu" +command="h5diff -r ${PWD}/VOICEXX_00005.h5 ${RSTDIR}/VOICEXX_00005.h5 fdistribu" eval $command if [ $? -ne 0 ]; then exit 1 -fi \ No newline at end of file +fi