Commit ff645a45 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix check for greo result

parent 299a9db1
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -41,8 +41,9 @@ mv CLANG1/logs/*.enc.txt logs_enc/
mv CLANG1/logs/*.dec*.txt logs_dec_msan/

# sanity check: ensure that we have DTX frames in the cut bitstreams
grep_result=$(grep -r "Extracted 0 frames!" logs_enc/)
if [ "$grep_result" != "" ]; then
grep_exit_code=0
grep -r "Extracted 0 frames!" logs_enc/ || grep_exit_code=$?
if [ $grep_exit_code -ne 1 ]; then
  echo "Some bitstreams did not contain any SID frame!"
  echo -e "Check the input signals and/or the VAD performance!\n"
  echo "$grep_result"