Patchwork [1/3] oeqa/oetest: oeRuntimeTest: enable long messages

login
register
mail settings
Submitter Mihai Lindner
Date Sept. 5, 2013, 3:52 p.m.
Message ID <7586572e5b35a3bc9d5f1f9b3fb1e6c066d930b8.1378396260.git.mihaix.lindner@linux.intel.com>
Download mbox | patch
Permalink /patch/57483/
State Accepted
Commit e5196ebd6c652431a3b80cdc9f60b752401314f4
Headers show

Comments

Mihai Lindner - Sept. 5, 2013, 3:52 p.m.
Set longMessage to True for all tests derived from oeRuntimeTest, in
order to have somewhat info on assertions with cryptic or no messages.

Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com>
---
 meta/lib/oeqa/oetest.py        | 2 ++
 meta/lib/oeqa/runtime/smart.py | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index c9dc5dc..529abdc 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -37,6 +37,8 @@  def runTests(tc):
 
 
 class oeRuntimeTest(unittest.TestCase):
+
+    longMessage = True
     testFailures = []
     testSkipped = []
     testErrors = []
diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py
index 59083ca..468e047 100644
--- a/meta/lib/oeqa/runtime/smart.py
+++ b/meta/lib/oeqa/runtime/smart.py
@@ -12,8 +12,6 @@  def setUpModule():
 
 class SmartTest(oeRuntimeTest):
 
-    longMessage = True
-
     @skipUnlessPassed('test_smart_help')
     def smart(self, command, expected = 0):
         command = 'smart %s' % command