From patchwork Sun Jul 9 01:11:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6,of,8] test-mq: conditionalize output instead of tests From: Matt Harbison X-Patchwork-Id: 22150 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sat, 08 Jul 2017 21:11:04 -0400 # HG changeset patch # User Matt Harbison # Date 1499553972 14400 # Sat Jul 08 18:46:12 2017 -0400 # Node ID f2cdd7055b37ed3ad241bc9340d256af5b9f9379 # Parent c09262204a6f667250cb120e58ef469fba7b9cdd test-mq: conditionalize output instead of tests diff --git a/tests/test-mq.t b/tests/test-mq.t --- a/tests/test-mq.t +++ b/tests/test-mq.t @@ -932,27 +932,17 @@ #endif $ hg add new $ hg qrefresh -#if execbit + $ cat .hg/patches/new new file diff --git a/new b/new - new file mode 100755 + new file mode 100755 (execbit !) + new file mode 100644 (no-execbit !) --- /dev/null +++ b/new @@ -0,0 +1,1 @@ +foo -#else - $ cat .hg/patches/new - new file - - diff --git a/new b/new - new file mode 100644 - --- /dev/null - +++ b/new - @@ -0,0 +1,1 @@ - +foo -#endif $ hg qnew -m'copy file' copy $ hg cp new copy