xfs
[Top] [All Lists]

[PATCH 14/20] xfstests: add a unified diff option

To: xfs@xxxxxxxxxxx
Subject: [PATCH 14/20] xfstests: add a unified diff option
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 22 Dec 2008 11:38:45 -0500
Cc: Arkadiusz Miskiewicz <arekm@xxxxxxxx>
References: <20081222163831.755809000@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.46-1
From: Matthew Kent <mkent@xxxxxxxxxxxx>


Add the -udiff option to the test driver to make test output more
easily readable.

[hch:  why not make this default?]


Reviewed-by: Christoph Hellwig <hch@xxxxxx>

Index: xfs-cmds/xfstests/common
===================================================================
--- xfs-cmds.orig/xfstests/common       2008-12-01 22:06:21.000000000 +0100
+++ xfs-cmds/xfstests/common    2008-12-22 14:06:59.485250140 +0100
@@ -107,6 +107,7 @@ check options
     -nfs                test NFS
     -l                 line mode diff (default)
     -xdiff             graphical mode diff
+    -udiff             show unified diff
     -n                 show me, do not run tests
     -q                 quick [deprecated]
     -T                 output timestamps
@@ -157,6 +158,11 @@ testlist options
            fi
            ;;
 
+       -udiff) # show a unified diff
+           xpand=false
+           diff="$diff -u"
+           ;;
+
        -q)     # "quick", no longer used - always quick :-)
            xpand=false
            ;;

-- 

<Prev in Thread] Current Thread [Next in Thread>