chiark / gitweb /
Fix error in status.py when calling git.resolved
[stgit] / t / t1201-pull-trailing.sh
index e5fac882048e9e8061a0cce5b3fb967a29d91fff..9d70fe02fcd499ae0c52602bb21a5af0ec18e47c 100755 (executable)
@@ -28,11 +28,12 @@ test_expect_success \
 
 test_expect_success \
     'Port those patches to orig tree' \
-    "(cd foo &&
-      GIT_DIR=../bar/.git git-format-patch --stdout bases/master..HEAD |
+    '(cd foo &&
+      GIT_DIR=../bar/.git git-format-patch --stdout \
+          $(cd ../bar && stg id base@master)..HEAD |
       git-am -3 -k
      )
-"
+    '
 
 test_expect_success \
     'Pull those patches applied upstream, without pushing' \
@@ -40,7 +41,7 @@ test_expect_success \
      )
 "
 
-test_expect_failure \
+test_expect_success \
     'Try to push those patches without merge detection' \
     "(cd bar && stg push --all
      )
@@ -48,13 +49,13 @@ test_expect_failure \
 
 test_expect_success \
     'Pull those patches applied upstream' \
-    "(cd bar && stg push --all --merged
+    "(cd bar && stg push --undo && stg push --all --merged
      )
 "
 
 test_expect_success \
     'Check that all went well' \
-    "diff -u foo/file bar/file
+    "test_cmp foo/file bar/file
 "
 
 test_done