summaryrefslogtreecommitdiff
path: root/framework/tests
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-10-12 13:39:23 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2015-10-19 15:50:18 -0700
commit2b302443b3bc7134e9a4ebeeb070d44347de84aa (patch)
treeb59f5a179df7e9f671ee4fe7d33651c9e4aea146 /framework/tests
parentcdd158b155351b11b83ab87cb22a4b1d8c0b6685 (diff)
framework/tests/dmesg_tests.py: remove unnecessary test
TestResult already puts restrictions on what values it can store, so we don't need to ensure that it can still be serialized, it will fail in some other test non-specifically long before this test is able to identify problems. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'framework/tests')
-rw-r--r--framework/tests/dmesg_tests.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/framework/tests/dmesg_tests.py b/framework/tests/dmesg_tests.py
index 7833808bd..5c7b7ab6c 100644
--- a/framework/tests/dmesg_tests.py
+++ b/framework/tests/dmesg_tests.py
@@ -30,10 +30,6 @@ import os
import subprocess
import re
-try:
- import simplejson as json
-except ImportError:
- import json
import nose.tools as nt
from nose.plugins.skip import SkipTest
from nose.plugins.attrib import attr
@@ -41,7 +37,6 @@ from nose.plugins.attrib import attr
from framework import dmesg, status
import framework.core
import framework.test
-import framework.backends
import framework.tests.utils as utils
@@ -342,20 +337,6 @@ def test_update_result_add_dmesg():
msg="result does not have dmesg member but should")
-def test_json_serialize_updated_result():
- """dmesg.Dmesg.update_result: The TestResult is still json serializable"""
- test = TestDmesg()
-
- result = framework.results.TestResult()
- result.result = 'pass'
-
- test._new_messages = ['some', 'new', 'messages']
- result = test.update_result(result)
-
- encoder = json.JSONEncoder(default=framework.backends.json.piglit_encoder)
- encoder.encode(result)
-
-
@attr('privileged')
def test_execute_dmesg():
"""test.base.Test.execute: dmesg statuses are applied