Mercurial > hg
comparison tests/test-fix.t @ 37791:72ccb0716302 stable
tests: stabilize test-fix.t for Windows
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 30 Mar 2018 21:12:09 -0400 |
parents | e2506748b47f |
children | 8fa3396a832d |
comparison
equal
deleted
inserted
replaced
37790:afa8126a884b | 37791:72ccb0716302 |
---|---|
512 $ cd showstderr | 512 $ cd showstderr |
513 | 513 |
514 $ printf "hello\n" > hello.txt | 514 $ printf "hello\n" > hello.txt |
515 $ hg add | 515 $ hg add |
516 adding hello.txt | 516 adding hello.txt |
517 $ hg --config "fix.fail:command=printf 'HELLO\n' ; \ | 517 $ cat >> $TESTTMP/cmd.sh <<'EOF' |
518 > printf '{rootpath}: some\nerror' >&2" \ | 518 > printf 'HELLO\n' |
519 > printf "$@: some\nerror" >&2 | |
520 > EOF | |
521 $ hg --config "fix.fail:command=sh $TESTTMP/cmd.sh {rootpath}" \ | |
519 > --config "fix.fail:fileset=hello.txt" \ | 522 > --config "fix.fail:fileset=hello.txt" \ |
520 > fix --working-dir | 523 > fix --working-dir |
521 [wdir] fail: hello.txt: some | 524 [wdir] fail: hello.txt: some |
522 [wdir] fail: error | 525 [wdir] fail: error |
523 $ cat hello.txt | 526 $ cat hello.txt |