Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t9833-errors.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t9833-errors.sh` 48 lines ยท 927 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git p4 errors' 4 5 . ./lib-git-p4.sh 6 7 test_expect_success 'start p4d' ' 8 start_p4d 9 ' 10 11 test_expect_success 'add p4 files' ' 12 ( 13 cd "$cli" && 14 echo file1 >file1 && 15 p4 add file1 && 16 p4 submit -d "file1" 17 ) 18 ' 19 20 # after this test, the default user requires a password 21 test_expect_success 'error handling' ' 22 git p4 clone --dest="$git" //depot@all && 23 ( 24 cd "$git" && 25 P4PORT=: test_must_fail git p4 submit 2>errmsg 26 ) && 27 p4 passwd -P newpassword && 28 ( 29 P4PASSWD=badpassword && 30 export P4PASSWD && 31 test_must_fail git p4 clone //depot/foo 2>errmsg && 32 test_grep -q "failure accessing depot.*P4PASSWD" errmsg 33 ) 34 ' 35 36 test_expect_success 'ticket logged out' ' 37 P4TICKETS="$cli/tickets" && 38 echo "newpassword" | p4 login && 39 ( 40 cd "$git" && 41 test_commit "ticket-auth-check" && 42 p4 logout && 43 test_must_fail git p4 submit 2>errmsg && 44 test_grep -q "failure accessing depot" errmsg 45 ) 46 ' 47 48 test_done