Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
Update av test script to be more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanrn committed Feb 10, 2020
1 parent d81d940 commit baaba33
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions newRunMicroAVTest
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,14 @@ function runTest(){
pkill -f firefox
rm -f ./testing/mozharness/build/local.json

taskset -c $2 ./mach talos-test --suite "rlbox_av" 2>&1 | tee "$1_terminal_output.txt"
retVal=${PIPESTATUS[0]}
if [ $retVal -eq 0 ]; then
FINISHED=1
break;
else
echo "Failed to run test rlbox_av for $1. Retrying..." | tee "$1_terminal_output.txt"
fi
echo "" | tee "$1_terminal_output.txt"

for (( l = 0; l < 5; l++ )); do
timeout 120s taskset -c $2 ./mach talos-test --activeTests "theora_perf" 2>&1 | tee -a "$1_terminal_output.txt"
timeout 120s taskset -c $2 ./mach talos-test --activeTests "vpx_perf" 2>&1 | tee -a "$1_terminal_output.txt"
timeout 120s taskset -c $2 ./mach talos-test --activeTests "vorbis_perf" 2>&1 | tee -a "$1_terminal_output.txt"
done
done
if [ $FINISHED -eq 0 ]; then
echo "Failed to run test rlbox_av for $1." | tee "$1_terminal_output.txt"
exit 1
fi
sleep 10
mv ./testing/mozharness/build/local.json "$1_rlbox_test_page_render.json"
}

SAVEDDIR=$PWD
Expand Down

0 comments on commit baaba33

Please sign in to comment.