summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-13 18:52:12 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-13 18:52:12 +0000
commit5503fe3a9200f966ebc33c808476316e64e6b82b (patch)
treed9002e909075761c052ac7a1a1ad586f03459b17
parent19b70815b4d1ce20b6eb865580435a11d8b3c8d0 (diff)
downloadpdfium-5503fe3a9200f966ebc33c808476316e64e6b82b.tar.xz
Run pdfium_test in only one place in make_expected.sh.
Change-Id: I91c55632627bb9cc0d6b61ae1004db1343d6bff2 Reviewed-on: https://pdfium-review.googlesource.com/39910 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
-rwxr-xr-xtesting/tools/make_expected.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/tools/make_expected.sh b/testing/tools/make_expected.sh
index 9b7e3d8716..d4d219ae99 100755
--- a/testing/tools/make_expected.sh
+++ b/testing/tools/make_expected.sh
@@ -19,11 +19,11 @@ while (( "$#" )); do
INFILE="$1"
echo $INFILE | grep -qs ' ' && echo space in filename detected && exit 1
EVTFILE="${INFILE%.*}.evt"
+ SEND_EVENTS=
if [ -f "$EVTFILE" ]; then
- out/Debug/pdfium_test --send-events --time=$TEST_SEED_TIME --png $INFILE
- else
- out/Debug/pdfium_test --time=$TEST_SEED_TIME --png $INFILE
+ SEND_EVENTS="--send-events"
fi
+ out/Debug/pdfium_test "$SEND_EVENTS" --time=$TEST_SEED_TIME --png $INFILE
RESULTS="$INFILE.*.png"
for RESULT in $RESULTS ; do
EXPECTED=`echo -n $RESULT | sed 's/[.]pdf[.]/_expected.pdf./'`