From: Stefan Eissing Date: Wed, 30 Aug 2023 09:18:17 +0000 (+0200) Subject: test_07_upload.py: fix test_07_34 curl args X-Git-Tag: curl-8_3_0~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f283e90c38d250b0d06066336f1f163041e031b;p=thirdparty%2Fcurl.git test_07_upload.py: fix test_07_34 curl args - Pass correct filename to --data-binary. Prior to this change --data-binary was passed an incorrect filename due to a missing separator in the arguments list. Since aacbeae7 curl will error on incorrect filenames for POST. Fixes https://github.com/curl/curl/issues/11761 Closes https://github.com/curl/curl/pull/11763 --- diff --git a/tests/http/test_07_upload.py b/tests/http/test_07_upload.py index 6804b6b89c..60963f0ea7 100644 --- a/tests/http/test_07_upload.py +++ b/tests/http/test_07_upload.py @@ -287,7 +287,6 @@ class TestUpload: def test_07_34_issue_11194(self, env: Env, httpd, nghttpx, repeat): proto = 'h2' - fdata = os.path.join(env.gen_dir, 'data-10m') # tell our test PUT handler to read the upload more slowly, so # that the send buffering and transfer loop needs to wait fdata = os.path.join(env.gen_dir, 'data-100k') @@ -299,7 +298,7 @@ class TestUpload: '--cacert', env.ca.cert_file, '--request', 'PUT', '--digest', '--user', 'test:test', - '--data-binary', f'@{fdata}' + '--data-binary', f'@{fdata}', '--url', url, ]) assert r.exit_code == 0, r.dump_logs()