]> diplodocus.org Git - nmh/blobdiff - test/oauth/test-mhlogin
Sort JSON output from oauth tests so that comparisons don't
[nmh] / test / oauth / test-mhlogin
index 6103f70681ea013f4680191397ce6afd0a69a06e..b7287a4117e901b99772ae52375dc11a77185681 100755 (executable)
@@ -11,7 +11,7 @@ fi
 . "${srcdir}/test/oauth/common.sh"
 
 expect_no_creds() {
-    cat /dev/null > "${testname}.expected-creds"
+    cat /dev/null > "${MHTMPDIR}/$$.expected-creds"
     cat /dev/null > "${MHTMPDIR}/oauth-test"
     chmod 600 "${MHTMPDIR}/oauth-test"
 }
@@ -254,4 +254,6 @@ expect_no_creds
 test_mhlogin 'mhlogin: error exchanging code for OAuth2 token
 mhlogin: bad OAuth request; re-run with -snoop and send REDACTED output to nmh-workers'
 
+clean_fakehttp
+
 exit ${failed:-0}