This is an archive of the discontinued Mercurial Phabricator instance.

tests: rely on dummyssh being the default

Authored by valentin.gatienbaron on Aug 3 2021, 12:47 AM.



This commit is exactly the result of running this command:

sed -i -e 's! *\(-e \|--ssh \|--config ui.ssh=\)[ \"]*$PYTHON[ \"]*$\(RUN\|\)TESTDIR/dummyssh[\"]* *! !g' -e '/^[ >]*ssh *=[ "]*$PYTHON[ "]*$\(RUN\|\)TESTDIR\/dummyssh[ "]*$/d' -e 's/^\( [$] .*[^ ]\) *$/\1/' *.t *.sh

Sometimes the tests can be simplified further, but I think it's
preferable to do the simplification separately.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit accepted this revision.Aug 4 2021, 4:49 AM
This revision is now accepted and ready to land.Aug 4 2021, 4:49 AM
Alphare requested changes to this revision.Aug 27 2021, 6:21 AM
Alphare added a subscriber: Alphare.

Seems like this breaks some globbing on Windows because of / vs \:

This revision now requires changes to proceed.Aug 27 2021, 6:21 AM

I think this should be fixed. If I understand the diff correctly, it was a slash vs backslash change, and the rest is noise.

This part of the regex ".*[\/]dummyssh" should be ".*[/\\]dummyssh", since [\/] is only a redundant escape for [/]. (

I'll amend this in your patches and test again.

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.