(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test_description) op: assign_op.Equal rhs: {(SQ <'git p4 handling of EDITOR'>)} spids: [4] ) ] ) (C {<.>} {<'./lib-git-p4.sh'>}) (C {<test_expect_success>} {(SQ <'start p4d'>)} {(SQ <'\n'> <'\tstart_p4d\n'>)}) (C {<test_expect_success>} {(SQ <'init depot'>)} { (SQ <'\n'> <'\t(\n'> <'\t\tcd "$cli" &&\n'> <'\t\techo file1 >file1 &&\n'> <'\t\tp4 add file1 &&\n'> <'\t\tp4 submit -d "file1"\n'> <'\t)\n'> ) } ) (C {<test_expect_success>} {(SQ <'EDITOR with options'>)} { (SQ <'\n'> <'\tgit p4 clone --dest="$git" //depot &&\n'> <'\ttest_when_finished cleanup_git &&\n'> <'\t(\n'> <'\t\tcd "$git" &&\n'> <'\t\techo change >file1 &&\n'> <'\t\tgit commit -m "change" file1 &&\n'> <'\t\tP4EDITOR=": >\\"$git/touched\\" && test-chmtime +5" git p4 submit &&\n'> <'\t\ttest_path_is_file "$git/touched"\n'> <'\t)\n'> ) } ) (C {<test_expect_success>} {(SQ <'kill p4d'>)} {(SQ <'\n'> <'\tkill_p4d\n'>)}) (C {<test_done>}) ] )