debian/rules should be producing architecture independent packages
[stgit/dwhite.git] / t / t1701-goto-hidden.sh
bloba3c6e62d549ebfd7d8ba981b15b876f31c057690
1 #!/bin/sh
3 test_description='Test "stg goto" 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 'Refuse to go to a hidden patch' '
19 command_error stg goto hidden-patch &&
20 test "$(echo $(stg series --all))" = "! hidden-patch"
23 test_done