Fourth batch
[gitweb.git] / t / t9805-git-p4-skip-submit-edit.sh
index ff2cc79701cce5ff570ff3c11d1ad0b60459d9ef..90ef647db7e610b825cc92d51ee2a5379dcf05b3 100755 (executable)
@@ -17,7 +17,7 @@ test_expect_success 'init depot' '
        )
 '
 
-# this works because EDITOR is set to :
+# this works because P4EDITOR is set to true
 test_expect_success 'no config, unedited, say yes' '
        git p4 clone --dest="$git" //depot &&
        test_when_finished cleanup_git &&
@@ -90,14 +90,12 @@ test_expect_success 'no config, edited' '
                cd "$git" &&
                echo line >>file1 &&
                git commit -a -m "change 5" &&
-               P4EDITOR="" EDITOR="\"$TRASH_DIRECTORY/ed.sh\"" git p4 submit &&
+               P4EDITOR="\"$TRASH_DIRECTORY/ed.sh\"" &&
+               export P4EDITOR &&
+               git p4 submit &&
                p4 changes //depot/... >wc &&
                test_line_count = 5 wc
        )
 '
 
-test_expect_success 'kill p4d' '
-       kill_p4d
-'
-
 test_done