Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Actually do test what I claimed to test



On Nov 27, 11:32am, Peter Stephenson wrote:
} Subject: Re: Actually do test what I claimed to test
}
} If you want to be srue, stick a placeholder line in the file and simply
} replace that.

Yeah, I was trying to avoid changing B02typeset, but this really is
the best way.


diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst
index 1b8caee..954ae32 100644
--- a/Test/B02typeset.ztst
+++ b/Test/B02typeset.ztst
@@ -21,6 +21,7 @@
 #  Assorted illegal flag combinations
 
 %prep
+  # test_zsh_param_private
 
   mkdir typeset.tmp && cd typeset.tmp
 
diff --git a/Test/V10private.ztst b/Test/V10private.ztst
index bb456f2..317e869 100644
--- a/Test/V10private.ztst
+++ b/Test/V10private.ztst
@@ -8,8 +8,7 @@
 
  # Do not use .tmp here, ztst.zsh will remove it too soon (see %cleanup)
  mkdir private.TMP
- sed '/^%prep/a\
-  zmodload zsh/param/private' < $ZTST_srcdir/B02typeset.ztst > private.TMP/B02
+ sed -e 's,# test_zsh_param_private,zmodload zsh/param/private,' < $ZTST_srcdir/B02typeset.ztst > private.TMP/B02
 
 %test
 



Messages sorted by: Reverse Date, Date, Thread, Author