[Piglit] [PATCH 22/42] results_v0_tests.py: Fix test names
Dylan Baker
baker.dylan.c at gmail.com
Wed Apr 22 15:10:11 PDT 2015
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
framework/tests/results_v0_tests.py | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/framework/tests/results_v0_tests.py b/framework/tests/results_v0_tests.py
index bf885a7..91bcfef 100644
--- a/framework/tests/results_v0_tests.py
+++ b/framework/tests/results_v0_tests.py
@@ -18,7 +18,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-""" Module provides tests for converting version zero results to version 1 """
+"""Module provides tests for converting version zero results to version 1"""
from __future__ import print_function, absolute_import
import os
@@ -128,41 +128,41 @@ with utils.with_tempfile(json.dumps(DATA)) as t:
def test_dmesg():
- """ version 1: dmesg is converted from a list to a string """
+ """backends.json.update_results (0 -> 1): dmesg is converted from a list to a string"""
assert RESULT.tests['sometest']['dmesg'] == 'this\nis\ndmesg'
def test_subtests_remove_duplicates():
- """ Version 1: Removes duplicate entries """
+ """backends.json.update_results (0 -> 1): Removes duplicate entries"""
assert 'group1/groupA/test/subtest 1' not in RESULT.tests
assert 'group1/groupA/test/subtest 2' not in RESULT.tests
def test_subtests_add_test():
- """ Version 1: Add an entry for the actual test """
+ """backends.json.update_results (0 -> 1): Add an entry for the actual test"""
assert RESULT.tests.get('group1/groupA/test')
def test_subtests_test_is_testresult():
- """ Version 1: The result of the new test is a TestResult Instance """
+ """backends.json.update_results (0 -> 1): The result of the new test is a TestResult Instance"""
assert isinstance(
RESULT.tests['group1/groupA/test'],
results.TestResult)
def test_info_delete():
- """ Version 1: Remove the info name from results """
+ """backends.json.update_results (0 -> 1): Remove the info name from results"""
for value in RESULT.tests.itervalues():
assert 'info' not in value
def test_returncode_from_info():
- """ Version 1: Use the returncode from info if there is no returncode """
+ """backends.json.update_results (0 -> 1): Use the returncode from info if there is no returncode"""
assert RESULT.tests['sometest']['returncode'] == 1
def test_returncode_no_override():
- """ Version 1: Do not clobber returncode with info
+ """backends.json.update_results (0 -> 1): Do not clobber returncode with info
The returncode from info should not overwrite an existing returcnode
attribute, this test only tests that the value in info isn't used when
@@ -173,22 +173,22 @@ def test_returncode_no_override():
def test_err_from_info():
- """ Version 1: add an err attribute from info """
+ """backends.json.update_results (0 -> 1): add an err attribute from info"""
assert RESULT.tests['group1/groupA/test']['err'] == 'stderr'
def test_out_from_info():
- """ Version 1: add an out attribute from info """
+ """backends.json.update_results (0 -> 1): add an out attribute from info"""
assert RESULT.tests['group1/groupA/test']['out'] == 'stdout'
def test_set_version():
- """ Version 1: Set the version to 1 """
+ """backends.json.update_results (0 -> 1): Set the version to 1"""
assert RESULT.results_version == 1
def test_dont_break_single_subtest():
- """ Version 1: Don't break single subtest entries
+ """backends.json.update_results (0 -> 1): Don't break single subtest entries
A test with a single subtest was written correctly before, dont break it by
removing the name of the test. ex:
@@ -206,7 +206,7 @@ def test_dont_break_single_subtest():
def test_info_split():
- """ Version 1: info can split into any number of elements """
+ """backends.json.update_results (0 -> 1): info can split into any number of elements"""
data = copy.copy(DATA)
data['tests']['sometest']['info'] = \
'Returncode: 1\n\nErrors:stderr\n\nOutput: stdout\n\nmore\n\nstuff'
@@ -217,7 +217,7 @@ def test_info_split():
def test_subtests_with_slash():
- """ Version 1: Subtest names with /'s are handled correctly """
+ """backends.json.update_results (0 -> 1): Subtest names with /'s are handled correctly"""
expected = 'group2/groupA/test/subtest 1'
nt.assert_not_in(
@@ -226,7 +226,7 @@ def test_subtests_with_slash():
def test_handle_fixed_subtests():
- """ Version 1: Correctly handle new single entry subtests correctly """
+ """backends.json.update_results (0 -> 1): Correctly handle new single entry subtests correctly"""
assert 'group3/groupA/test' in RESULT.tests.iterkeys()
--
2.3.5
More information about the Piglit
mailing list