3 test_description
='Test "stg hide" and "stg unhide"'
7 test_expect_success
'Initialize stgit' '
11 test_expect_success
'Attempt too few arguments' '
12 command_error stg hide 2>&1 | grep -e "No patches specified" &&
13 command_error stg unhide 2>&1 | grep -e "No patches specified"
16 test_expect_success
'Add some patches' '
23 test_expect_success
'Hide already hidden patch' '
27 test_expect_success
'Attempt unhide non-hidden patch' '
28 command_error stg unhide p0 2>&1 |
29 grep -e "Patch \"p0\" not hidden"
32 test_expect_success
'Unhide hidden patch' '