( )⚙ D6852 tests: stabilize test-fix.t on Windows

This is an archive of the discontinued Mercurial Phabricator instance.

tests: stabilize test-fix.t on Windows
ClosedPublic

Authored by mharbison72 on Sep 14 2019, 1:59 PM.

Details

Summary

pwd prints /tmp/... style paths, not C:\... needed for $TESTTMP to be
substituted.

In the final test, for whatever reason, Windows was missing EOL in the files and
printing:

[wdir] changedlines: printf: warning: ignoring excess arguments, starting
   with 'printf'

even though it was trying to run:

printf "Line ranges:\n"; printf "2 through 2\n";

I tried wrapping both :command and :linerange in sh -c "...", and while that
fixed the missing EOL, it missed the "2 through 2" output.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

mharbison72 created this revision.Sep 14 2019, 1:59 PM
pulkit accepted this revision.Sep 16 2019, 1:11 PM
This revision is now accepted and ready to land.Sep 16 2019, 1:11 PM
This revision was automatically updated to reflect the committed changes.