From: "Karl Hasselström" <kha@treskal.com>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: git@vger.kernel.org, Erik Sandberg <mandolaerik@gmail.com>
Subject: [StGit PATCH 1/2] Try "stg sink" without applied patches
Date: Mon, 30 Jun 2008 00:45:41 +0200 [thread overview]
Message-ID: <20080629224541.9267.19258.stgit@yoghurt> (raw)
In-Reply-To: <20080629224440.9267.3591.stgit@yoghurt>
It doesn't work, neither with an implicit nor an explicit patch to
sink. This is bug 11887 in the bug tracker.
(The implicit sink testcase actually passes, but that's just because
the test suite can't distinguish between a program bug and an orderly
abort.)
The test was adapted from the script attached to the bug report,
written by Erik Sandberg.
Signed-off-by: Karl Hasselström <kha@treskal.com>
---
t/t1501-sink.sh | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
create mode 100755 t/t1501-sink.sh
diff --git a/t/t1501-sink.sh b/t/t1501-sink.sh
new file mode 100755
index 0000000..3872c4b
--- /dev/null
+++ b/t/t1501-sink.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+test_description='Test "stg sink"'
+
+. ./test-lib.sh
+
+test_expect_success 'Initialize StGit stack' '
+ echo 000 >> x &&
+ git add x &&
+ git commit -m initial &&
+ echo 000 >> y &&
+ git add y &&
+ git commit -m y &&
+ stg init &&
+ stg uncommit &&
+ stg pop
+'
+
+test_expect_success 'sink without applied patches' '
+ ! stg sink
+'
+
+test_expect_failure 'sink a specific patch without applied patches' '
+ stg sink y &&
+ test $(echo $(stg applied)) = "y"
+'
+
+test_done
next prev parent reply other threads:[~2008-06-29 22:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-29 22:45 [StGit PATCH 0/2] Test+fix for bug 11887 (stg sink) Karl Hasselström
2008-06-29 22:45 ` Karl Hasselström [this message]
2008-06-30 7:53 ` [StGit PATCH 1/2] Try "stg sink" without applied patches Sverre Rabbelier
2008-06-30 8:44 ` Karl Hasselström
2008-06-29 22:45 ` [StGit PATCH 2/2] Fix "stg sink" with no applied patches (bug 11887) Karl Hasselström
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080629224541.9267.19258.stgit@yoghurt \
--to=kha@treskal.com \
--cc=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
--cc=mandolaerik@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox