mirror of
https://gitlab.com/gnuwget/wget.git
synced 2025-07-29 12:37:24 +00:00
Use test file name for temp working directory name
* testenv/test/base_test.py (__init__): Use test file name for name, remove 'name' parameter * testenv/test/http_test.py (__init__): Remove 'name' parameter * testenv/*.py: Remove TEST_NAME Using a fixed string (TEST_NAME) to build the working directory for testing caused random failures (or successes) when tests share the same TEST_NAME value. Not easy to find without digging into the python test suite code. We now use the test file name, which is unique within the test environment.
This commit is contained in:
2
testenv/Test-c-full.py
Executable file → Normal file
2
testenv/Test-c-full.py
Executable file → Normal file
@ -7,7 +7,6 @@ from misc.wget_file import WgetFile
|
||||
Test Wget's response when the file requested already exists on disk with
|
||||
a filesize greater than or equal to the requested file.
|
||||
"""
|
||||
TEST_NAME = "Test continue option"
|
||||
############# File Definitions ###############################################
|
||||
File1 = "abababababababababababababababababababababababababababababababababab"
|
||||
File2 = "ababababababababababababababababababab"
|
||||
@ -44,7 +43,6 @@ post_test = {
|
||||
}
|
||||
|
||||
err = HTTPTest (
|
||||
name=TEST_NAME,
|
||||
pre_hook=pre_test,
|
||||
test_params=test_options,
|
||||
post_hook=post_test
|
||||
|
Reference in New Issue
Block a user