[darcs-users] darcs patch: added regression test for issue1632

Benjamin Franksen ben.franksen at online.de
Fri Oct 2 09:17:55 UTC 2009


Benjamin Franksen wrote:
> Trent W. Buck wrote:
> These would not be correct but I get your meaning. You want to just rename
> the script after the fix and not have to meddle with the comments, right?
> 
>> I would also redirect output (>log) so as to test Darcs' exit status,
>> e.g.
>> 
>>     not darcs changes dir/non-existent-file >log
>>     not fgrep 'added dir' log

Thinking about this a bit more before I re-send...

Calling 'not darcs changes ...' would fail if the 'darcs changes...' 
succeeds, so this doesn't really test for what it is supposed to test, 
right?

Maybe you meant

    darcs changes dir/non-existent-file >log
    not fgrep 'added dir' log

(i.e. w/o the 'not' in the first line)

Cheers
Ben




More information about the darcs-users mailing list