debian/rules should be producing architecture independent packages
[stgit/dwhite.git] / t / t1206-push-hidden.sh
blob20aa3060b6af9a87e78f0e0bae7c165c080e8e89
1 #!/bin/sh
3 test_description='Test "stg push" with hidden patches'
5 . ./test-lib.sh
7 test_expect_success 'Initialize StGit stack' '
8 stg init &&
9 echo foo > foo.txt &&
10 git add foo.txt &&
11 stg new -m hidden-patch &&
12 stg refresh &&
13 stg pop &&
14 stg hide hidden-patch &&
15 test "$(echo $(stg series --all))" = "! hidden-patch"
18 test_expect_success 'Push an implicitly named hidden patch (should fail)' '
19 command_error stg push &&
20 test "$(echo $(stg series --all))" = "! hidden-patch"
23 test_expect_failure 'Push an explicitly named hidden patch (should work)' '
24 stg push hidden-patch &&
25 test "$(echo $(stg series --all))" = "> hidden-patch"
28 test_done