aboutsummaryrefslogtreecommitdiff
path: root/test/html
diff options
context:
space:
mode:
Diffstat (limited to 'test/html')
-rwxr-xr-xtest/html/driver.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/html/driver.sh b/test/html/driver.sh
index 07a78b84..e4fbc739 100755
--- a/test/html/driver.sh
+++ b/test/html/driver.sh
@@ -93,7 +93,7 @@ function test_file() {
render_page "$ref_file" "$wdir/ref.png"
# AE = Absolute Error count of the number of different pixels
- diffcount=$(compare -metric AE "$wdir/html.png" "$wdir/ref.png" "$wdir/diff.png" 2>&1 || true)
+ diffcount=$(compare -metric AE "$wdir/html.png" "$wdir/ref.png" "$wdir/diff.png" 2>&1 | cut -d ' ' -f 1 || true)
# The test passes only if both images are identical
if [ "$diffcount" = "0" ]; then