# HG changeset patch # User Kevin Bullock # Date 1508787696 18000 # Node ID 312c4bb96e68dbde810d6b0833c4b562861e73fa # Parent 3a7daf4e1caeb1f69cbf2ad9c559ffec0d30727c tests: update globs so ssh command injection tests pass on macOS diff -r 3a7daf4e1cae -r 312c4bb96e68 tests/test-git-clone.t --- a/tests/test-git-clone.t Mon Oct 23 14:38:35 2017 -0500 +++ b/tests/test-git-clone.t Mon Oct 23 14:41:36 2017 -0500 @@ -51,8 +51,8 @@ abort: potentially unsafe hostname: '-oProxyCommand=rm${IFS}nonexistent' [255] $ hg clone 'git+ssh://fakehost|rm${IFS}nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn: - ssh: connect to host fakehost%7crm%24%7bifs%7dnonexistent port 22: * (glob) + ssh: * fakehost%7crm%24%7bifs%7dnonexistent* (glob) abort: git remote error: The remote server unexpectedly closed the connection. $ hg clone 'git+ssh://fakehost%7Crm${IFS}nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn: - ssh: connect to host fakehost%7crm%24%7bifs%7dnonexistent port 22: * (glob) + ssh: * fakehost%7crm%24%7bifs%7dnonexistent* (glob) abort: git remote error: The remote server unexpectedly closed the connection. diff -r 3a7daf4e1cae -r 312c4bb96e68 tests/test-pull.t --- a/tests/test-pull.t Mon Oct 23 14:38:35 2017 -0500 +++ b/tests/test-pull.t Mon Oct 23 14:41:36 2017 -0500 @@ -366,8 +366,8 @@ abort: potentially unsafe hostname: '-oProxyCommand=rm nonexistent' [255] $ hg pull 'git+ssh://fakehost|shellcommand/path' 2>&1 >/dev/null | grep -v ^devel-warn: - ssh: connect to host fakehost%7cshellcommand port 22: * (glob) + ssh: * fakehost%7cshellcommand* (glob) abort: git remote error: The remote server unexpectedly closed the connection. $ hg pull 'git+ssh://fakehost%7Cshellcommand/path' 2>&1 >/dev/null | grep -v ^devel-warn: - ssh: connect to host fakehost%7cshellcommand port 22: * (glob) + ssh: * fakehost%7cshellcommand* (glob) abort: git remote error: The remote server unexpectedly closed the connection. diff -r 3a7daf4e1cae -r 312c4bb96e68 tests/test-push.t --- a/tests/test-push.t Mon Oct 23 14:38:35 2017 -0500 +++ b/tests/test-push.t Mon Oct 23 14:41:36 2017 -0500 @@ -211,8 +211,8 @@ abort: potentially unsafe hostname: '-oProxyCommand=rm nonexistent' [255] $ hg push 'git+ssh://fakehost|rm%20nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn: - ssh: connect to host fakehost%7crm%20nonexistent port 22: * (glob) + ssh: * fakehost%7crm%20nonexistent* (glob) abort: git remote error: The remote server unexpectedly closed the connection. $ hg push 'git+ssh://fakehost%7Crm%20nonexistent/path' 2>&1 >/dev/null | grep -v ^devel-warn: - ssh: connect to host fakehost%7crm%20nonexistent port 22: * (glob) + ssh: * fakehost%7crm%20nonexistent* (glob) abort: git remote error: The remote server unexpectedly closed the connection.