[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] TEST_NAME in Python tests?
From: |
Dale R. Worley |
Subject: |
[Bug-wget] TEST_NAME in Python tests? |
Date: |
Wed, 24 Aug 2016 20:08:17 -0400 |
In the file testenv/README is:
Next, is the const variable, TEST_NAME that defines the name of the Test.
Both, the HTTPTest and FTPTest modules have the same prototype:
{
name,
pre_hook,
test_options,
post_hook,
protocols
}
name should be a string, and is usually passed to the TEST_NAME variable,
Remember to always name the Test correctly using the TEST_NAME variable.
This
is essential since a directory with the Test Name is created and this can
cause synchronization problems when the Parallel Test Harness is used.
One can use the following command on Unix systems to check for TEST_NAME
clashes:
$ grep -r -h "TEST_NAME =" | cut -c13- | uniq -c -d
However, *none* of the tests in testenv has a TEST_NAME parameter.
In addition, the HTTPTest class does not have a "name" argument for its
constructor. (See testenv/test/http_test.py, line 15.)
What should be done about this?
Dale
- [Bug-wget] TEST_NAME in Python tests?,
Dale R. Worley <=