3 test_description='git p4 errors'
7 test_expect_success 'start p4d' '
11 test_expect_success 'add p4 files' '
20 # after this test, the default user requires a password
21 test_expect_success 'error handling' '
22 git p4 clone --dest="$git" //depot@all &&
25 P4PORT=: test_must_fail git p4 submit 2>errmsg
27 p4 passwd -P newpassword &&
29 P4PASSWD=badpassword &&
31 test_must_fail git p4 clone //depot/foo 2>errmsg &&
32 grep -q "failure accessing depot.*P4PASSWD" errmsg
36 test_expect_success 'ticket logged out' '
37 P4TICKETS="$cli/tickets" &&
38 echo "newpassword" | p4 login &&
41 test_commit "ticket-auth-check" &&
43 test_must_fail git p4 submit 2>errmsg &&
44 grep -q "failure accessing depot" errmsg