mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:13:36 +03:00
tidy-up: mostly whitespace nits
- delete completed TODO from `./CMakeLists.txt`. - convert a C++ comment to C89 in `./CMake/CurlTests.c`. - delete duplicate EOLs from EOF. - add missing EOL at EOF. - delete whitespace at EOL (except from expected test results). - convert tabs to spaces. - convert CRLF EOLs to LF in GHA yaml. - text casing fixes in `./CMakeLists.txt`. - fix a codespell typo in `packages/OS400/initscript.sh`. Closes #11772
This commit is contained in:
parent
63f23fafc9
commit
ce3dce9015
87 changed files with 135 additions and 173 deletions
2
tests/http/.gitignore
vendored
2
tests/http/.gitignore
vendored
|
|
@ -3,4 +3,4 @@
|
|||
# SPDX-License-Identifier: curl
|
||||
|
||||
config.ini
|
||||
gen
|
||||
gen
|
||||
|
|
|
|||
2
tests/http/clients/.gitignore
vendored
2
tests/http/clients/.gitignore
vendored
|
|
@ -7,4 +7,4 @@ h2-download
|
|||
ws-data
|
||||
ws-pingpong
|
||||
h2-upgrade-extreme
|
||||
tls-session-reuse
|
||||
tls-session-reuse
|
||||
|
|
|
|||
|
|
@ -84,4 +84,3 @@ def nghttpx_fwd(env, httpd) -> Optional[Nghttpx]:
|
|||
assert nghttpx.start()
|
||||
yield nghttpx
|
||||
nghttpx.stop()
|
||||
|
||||
|
|
|
|||
|
|
@ -26,4 +26,4 @@
|
|||
pytest
|
||||
cryptography
|
||||
multipart
|
||||
websockets
|
||||
websockets
|
||||
|
|
|
|||
|
|
@ -140,5 +140,3 @@ class TestGoAway:
|
|||
log.debug(f'request {idx} connected')
|
||||
# this should take `count` seconds to retrieve
|
||||
assert r.duration >= timedelta(seconds=count)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -108,4 +108,3 @@ class TestErrors:
|
|||
r.check_response(http_status=200, count=1)
|
||||
# check that we did a downgrade
|
||||
assert r.stats[0]['http_version'] == '1.1', r.dump_logs()
|
||||
|
||||
|
|
|
|||
|
|
@ -112,4 +112,3 @@ class TestEyeballs:
|
|||
r.check_response(count=1, http_status=None, exitcode=False)
|
||||
assert r.stats[0]['time_connect'] == 0 # no one should have listened
|
||||
assert r.stats[0]['time_appconnect'] == 0 # did not happen either
|
||||
|
||||
|
|
|
|||
|
|
@ -298,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()
|
||||
|
|
|
|||
|
|
@ -157,4 +157,3 @@ class TestCaddy:
|
|||
assert r.total_connects > 1, r.dump_logs()
|
||||
else:
|
||||
assert r.total_connects == 1, r.dump_logs()
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class TestPush:
|
|||
url = f'https://{env.domain1}:{env.https_port}/push/data1'
|
||||
r = curl.http_download(urls=[url], alpn_proto='h2', with_stats=False,
|
||||
with_headers=True)
|
||||
r.check_exit_code(0)
|
||||
r.check_exit_code(0)
|
||||
assert len(r.responses) == 2, f'{r.responses}'
|
||||
assert r.responses[0]['status'] == 103, f'{r.responses}'
|
||||
assert 'link' in r.responses[0]['header'], f'{r.responses[0]}'
|
||||
|
|
|
|||
|
|
@ -248,4 +248,3 @@ class TestProxy:
|
|||
assert r.total_connects == 2
|
||||
else:
|
||||
assert r.total_connects == 2
|
||||
|
||||
|
|
|
|||
|
|
@ -157,4 +157,3 @@ class TestProxyAuth:
|
|||
protocol='HTTP/2' if proto == 'h2' else 'HTTP/1.1')
|
||||
assert self.get_tunnel_proto_used(r) == 'HTTP/2' \
|
||||
if tunnel == 'h2' else 'HTTP/1.1'
|
||||
|
||||
|
|
|
|||
|
|
@ -109,4 +109,4 @@ class TestTracing:
|
|||
if m is not None:
|
||||
found_tcp = True
|
||||
if found_tcp:
|
||||
assert False, f'TCP filter appears in trace "all,-tcp": {r.stderr}'
|
||||
assert False, f'TCP filter appears in trace "all,-tcp": {r.stderr}'
|
||||
|
|
|
|||
|
|
@ -469,4 +469,3 @@ class Env:
|
|||
pytest.exit(f"`make`in {client_dir} failed:\n{p.stderr}")
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
|
|||
2
tests/http/testenv/mod_curltest/.gitignore
vendored
2
tests/http/testenv/mod_curltest/.gitignore
vendored
|
|
@ -2,4 +2,4 @@
|
|||
#
|
||||
# SPDX-License-Identifier: curl
|
||||
|
||||
*.slo
|
||||
*.slo
|
||||
|
|
|
|||
|
|
@ -256,4 +256,3 @@ class NghttpxFwd(Nghttpx):
|
|||
time.sleep(.1)
|
||||
log.error(f"Server still not responding after {timeout}")
|
||||
return False
|
||||
|
||||
|
|
|
|||
|
|
@ -45,5 +45,3 @@ def alloc_ports(port_specs: Dict[str, int]) -> Dict[str, int]:
|
|||
for s in socks:
|
||||
s.close()
|
||||
return ports
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue