# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 1229726912 21600
#      Fri Dec 19 16:48:32 2008 -0600
# Node ID 0a65a1dd7894fa8e50a053d5b015ec91835d77a5
# Parent  eadcc075967ea3d1d120dc1217937d7c23a733a1
tests: fix no-diffs option

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -400,8 +400,8 @@
             fail("output changed and returned error code %d" % ret)
         else:
             fail("output changed")
-            if not nodiff:
-                show_diff(ref_out, out)
+        if not nodiff:
+            show_diff(ref_out, out)
         ret = 1
     elif ret:
         mark = '!'