Test for bug 1192 - brace expansion.
Commit 968d1c3 (Portability) introduced a bug with some very POSIX
compliant shells (eg dash), which don't do brace expansion. So add a
test for that.
The test runs by adding a new protocol in Uri, sh+cp://path/. This
protocol is not intended to be used normally, but is only for testing
the push and pull code.
Signed-off-by: Russell Steicke <russells@adelie.cx>
This commit is contained in:
committed by
Paul Beckingham
parent
983e07ab01
commit
0cc7bc337d
@@ -38,6 +38,7 @@
|
||||
#include <TransportSSH.h>
|
||||
#include <TransportRSYNC.h>
|
||||
#include <TransportCurl.h>
|
||||
#include <TransportShell.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Transport::Transport (const Uri& uri)
|
||||
@@ -68,6 +69,10 @@ Transport* Transport::getTransport(const Uri& uri)
|
||||
{
|
||||
return new TransportCurl(uri);
|
||||
}
|
||||
else if ( uri._protocol == "sh+cp")
|
||||
{
|
||||
return new TransportShell(uri);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user