monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] tests/automate_get_workspace_root broken on MinGW


From: Richard Levitte
Subject: Re: [Monotone-devel] tests/automate_get_workspace_root broken on MinGW
Date: Sun, 25 May 2008 11:18:06 +0200 (CEST)

In message <address@hidden> on Sat, 24 May 2008 12:51:03 -0400, Stephen Leake 
<address@hidden> said:

stephen_leake> tests/automate_get_workspace_root/__driver__.lua does:
stephen_leake> 
stephen_leake> check(indir("foo",mtn("automate", "get_workspace_root")), 0, 
true, false)
stephen_leake> check(qgrep("^"..cwd.."$", "stdout"))
stephen_leake> 
stephen_leake> That breaks on MinGW; the directory path has backslashes in it, 
which
stephen_leake> should be escaped.
stephen_leake> 
stephen_leake> I couldn't find a 'quote_regexp' Lua function, nor did a quick 
search
stephen_leake> find one in pcre/*. 
stephen_leake> 
stephen_leake> Anyway this seems simpler:
stephen_leake> 
stephen_leake> check(cwd .. '\n' == readfile("stdout"))
stephen_leake> 
stephen_leake> Is there a reason to prefer 'qgrep' over ' == readfile()'?

None, I will fix as you suggest.

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         address@hidden
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis




reply via email to

[Prev in Thread] Current Thread [Next in Thread]