diff --git a/StationTest/tbb_version.sh b/StationTest/tbb_version.sh index 595d4eec4a2e9d3d18f73652fac1e0fb2cb3b430..3f8e8063442719bd7d298c43fb08f16f6f8a912d 100644 --- a/StationTest/tbb_version.sh +++ b/StationTest/tbb_version.sh @@ -1,16 +1,16 @@ -#!/bin/bash - -# -# Get version info from the TBB boards and compare this with the expected golden result. -# - -rm -f *.log -rm -f *.diff -tbbctl --version --select=0,1 > tbb_version.log -diff tbb_version.log gold/tbb_version.gold > tbb_version.diff -if [ -e tbb_version.log ] && [ -e gold/tbb_version.gold ] && [ -e tbb_version.diff ] && ! [ -s tbb_version.diff ]; then - # The files exists AND has the diff size 0 - echo "TBB version test went OK" -else - echo "TBB version test went wrong" -fi +#!/bin/bash + +# +# Get version info from the TBB boards and compare this with the expected golden result. +# + +rm -f tbb_version.log +rm -f tbb_version.diff +tbbctl --version > tbb_version.log +diff tbb_version.log gold/tbb_version.gold > tbb_version.diff +if [ -e tbb_version.log ] && [ -e gold/tbb_version.gold ] && [ -e tbb_version.diff ] && ! [ -s tbb_version.diff ]; then + # The files exists AND has the diff size 0 + echo "TBB version test went OK" +else + echo "TBB version test went wrong" +fi