git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[StGIT PATCH 6/7] Fix t1200 to catch intermediate errors.

From
Yann Dirson <ydirson@altern.org>
Date
Jun 25, 2007, 21:24 UTC
Message-ID
<20070625212451.17189.21928.stgit@gandelf.nowhere.earth>
In-Reply-To
<20070625212229.17189.79919.stgit@gandelf.nowhere.earth>

All command sequences in tests should be linked with && or similar, to guard against potentially missing a regresssion.

Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 t/t1200-push-modified.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t1200-push-modified.sh b/t/t1200-push-modified.sh
index 6769667..324b3b0 100755
--- a/t/t1200-push-modified.sh
+++ b/t/t1200-push-modified.sh
@@ -21,9 +21,9 @@ test_create_repo foo
 test_expect_success \
     'Clone tree and setup changes' \
     "stg clone foo bar &&
-     (cd bar && stg new p1 -m p1
+     (cd bar && stg new p1 -m p1 &&
       printf 'a\nc\n' > file && stg add file && stg refresh &&
-      stg new p2 -m p2
+      stg new p2 -m p2 &&
       printf 'a\nb\nc\n' > file && stg refresh
      )
 "
Previous: Yann DirsonNext: Yann Dirson
Message 7 of 8 in “My patchqueue for 0.13.”
  1. 0/7 My patchqueue for 0.13.Yann Dirson, Jun 25, 2007
  2. 1/7 Fix contrib/stg-whatchanged way of identifying a conflict.Yann Dirson, Jun 25, 2007
  3. 2/7 stg-cvs: update doc, and use correct setting for parent branch.Yann Dirson, Jun 25, 2007
  4. 3/7 Revert part of the reverted commit that we want to keep.Yann Dirson, Jun 25, 2007
  5. 4/7 Fixed thinko in error message.Yann Dirson, Jun 25, 2007
  6. 5/7 Changed sync not to use -b which has other semantics.Yann Dirson, Jun 25, 2007
  7. 6/7 Fix t1200 to catch intermediate errors.Yann Dirson, Jun 25, 2007
  8. 7/7 If available, use gitk --argscmd in contrib/stg-gitk.Yann Dirson, Jun 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.