Skip to content
Snippets Groups Projects
Commit 4b347e94 authored by Matt Harbison's avatar Matt Harbison
Browse files

tests: stabilize `test-split-legacy-inline-changelog.t` on Windows

The `tar` command is unable to process "C:\path\to\foo.tar" style paths, which
is how `$TESTDIR` is constructed.  It also didn't work with
`$TESTDIR_FORWARD_SLASH`- both failed with:

    tar: Cannot connect to C: resolve failed
    [128]

But `cat` can handle it if the path is quoted, and `tar` can read from stdin.
parent b99f0b76
No related branches found
No related tags found
3 merge requests!1041Merge default into stable,!997tests: use shlex.quote instead of pipes.quote,!983Windows test fixes, round 2
......@@ -18,7 +18,8 @@
$ mkdir sanity-check
$ cd sanity-check
$ tar xf $TESTDIR/bundles/inlined-changelog.tar
$ cat "$TESTDIR/bundles/inlined-changelog.tar" | tar xf -
$ cd inlined-changelog
$ hg root
$TESTTMP/sanity-check/inlined-changelog
......@@ -55,7 +56,7 @@
$ mkdir simple-commit
$ cd simple-commit
$ tar xf $TESTDIR/bundles/inlined-changelog.tar
$ cat "$TESTDIR/bundles/inlined-changelog.tar" | tar xf -
$ cd inlined-changelog
$ hg up --quiet
$ hg log -GT '[{rev}] {desc}\n'
......@@ -85,7 +86,7 @@
$ mkdir pretxnclose-commit
$ cd pretxnclose-commit
$ tar xf $TESTDIR/bundles/inlined-changelog.tar
$ cat "$TESTDIR/bundles/inlined-changelog.tar" | tar xf -
$ cat >> inlined-changelog/.hg/hgrc <<EOF
> [hooks]
> pretxnclose=hg log -r tip -T "pre-txn tip rev: {rev}\n"
......@@ -121,7 +122,7 @@
$ mkdir simple-local-push
$ cd simple-local-push
$ tar xf $TESTDIR/bundles/inlined-changelog.tar
$ cat "$TESTDIR/bundles/inlined-changelog.tar" | tar xf -
$ hg log -R inlined-changelog -T '[{rev}] {desc}\n'
[0] first commit
......@@ -166,7 +167,7 @@
$ mkdir pretxnchangegroup-local-push
$ cd pretxnchangegroup-local-push
$ tar xf $TESTDIR/bundles/inlined-changelog.tar
$ cat "$TESTDIR/bundles/inlined-changelog.tar" | tar xf -
$ cat >> inlined-changelog/.hg/hgrc <<EOF
> [hooks]
> pretxnchangegroup=hg log -r tip -T "pre-txn tip rev: {rev}\n"
......@@ -214,7 +215,7 @@
$ mkdir simple-ssh-push
$ cd simple-ssh-push
$ tar xf $TESTDIR/bundles/inlined-changelog.tar
$ cat "$TESTDIR/bundles/inlined-changelog.tar" | tar xf -
$ hg log -R inlined-changelog -T '[{rev}] {desc}\n'
[0] first commit
......@@ -259,7 +260,7 @@
$ mkdir pretxnchangegroup-ssh-push
$ cd pretxnchangegroup-ssh-push
$ tar xf $TESTDIR/bundles/inlined-changelog.tar
$ cat "$TESTDIR/bundles/inlined-changelog.tar" | tar xf -
$ cat >> inlined-changelog/.hg/hgrc <<EOF
> [hooks]
> pretxnchangegroup=hg log -r tip -T "pre-txn tip rev: {rev}\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment