]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test_07_upload.py: fix test_07_34 curl args
authorStefan Eissing <stefan@eissing.org>
Wed, 30 Aug 2023 09:18:17 +0000 (11:18 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 30 Aug 2023 15:32:15 +0000 (11:32 -0400)
- 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

tests/http/test_07_upload.py

index 6804b6b89c5a8deae9210ab86d7a0d2c0bb37c0f..60963f0ea72e7f6fbe0ba47361529918ce7cf063 100644 (file)
@@ -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()