chiark / gitweb /
mtest: Provide for sedderyb
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 22 Nov 2019 23:04:00 +0000 (23:04 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 22 Nov 2019 23:04:00 +0000 (23:04 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
mtest/common.tcl

index fb93517..b6fde3e 100644 (file)
@@ -17,11 +17,12 @@ proc run-mss-userv {user group args} {
 
 proc run-mss {args} { eval [list exec] [mss-program] $args }
 
-proc diff {a b seddery} {
-    puts "$a $b $seddery"
+proc diff {a b seddery {sedderyb X}} {
+    if {![string compare $sedderyb X]} { set sedderyb $seddery }
+    puts "$a $b $seddery $sedderyb"
     exec bash -c "
-       diff -u <($seddery $a) \\
-               <($seddery $b)
+       diff -u <( <$a $seddery  ) \\
+               <( <$b $sedderyb )
     "
 }