summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/ldd.py
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-09-19 13:49:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-22 12:19:33 +0100
commitad77d1038674ee23ec62aa0df7acbc50f7c4d6d8 (patch)
tree8da3d7e56656a748890fb96bf81353e838792cc6 /meta/lib/oeqa/runtime/ldd.py
parentf3ab2fc731e5e64e2408eefd6b255a2714c44c30 (diff)
downloadpoky-ad77d1038674ee23ec62aa0df7acbc50f7c4d6d8.tar.gz
lib/oeqa/runtime: cleanup and improve output readability for some tests
- move everything in the same test. setUp/tearDown aren't quite the right thing here, everything it's part of the same test. (and it get's confusing when ssh fails) ldd: - change test name and add output to error message vnc: - remove unnecessary check as there is no point in doing both ps and netstat. Also improve error output a bit. (From OE-Core rev: 2f91bb438cfcdd0a40daed5902b6e98fc0aee67f) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/ldd.py')
-rw-r--r--meta/lib/oeqa/runtime/ldd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/ldd.py b/meta/lib/oeqa/runtime/ldd.py
index 577c5e26ef..4374530fc4 100644
--- a/meta/lib/oeqa/runtime/ldd.py
+++ b/meta/lib/oeqa/runtime/ldd.py
@@ -11,9 +11,9 @@ class LddTest(oeRuntimeTest):
11 @skipUnlessPassed('test_ssh') 11 @skipUnlessPassed('test_ssh')
12 def test_ldd_exists(self): 12 def test_ldd_exists(self):
13 (status, output) = self.target.run('which ldd') 13 (status, output) = self.target.run('which ldd')
14 self.assertEqual(status, 0, msg = "ldd does not exist in PATH !") 14 self.assertEqual(status, 0, msg = "ldd does not exist in PATH: which ldd: %s" % output)
15 15
16 @skipUnlessPassed('test_ldd_exists') 16 @skipUnlessPassed('test_ldd_exists')
17 def test_ldd(self): 17 def test_ldd_rtldlist_check(self):
18 (status, output) = self.target.run('for i in $(which ldd | xargs cat | grep "^RTLDLIST"|cut -d\'=\' -f2|tr -d \'"\'); do test -f $i && echo $i && break; done') 18 (status, output) = self.target.run('for i in $(which ldd | xargs cat | grep "^RTLDLIST"|cut -d\'=\' -f2|tr -d \'"\'); do test -f $i && echo $i && break; done')
19 self.assertEqual(status, 0, msg = "ldd path not correct or RTLDLIST files don't exist. ") 19 self.assertEqual(status, 0, msg = "ldd path not correct or RTLDLIST files don't exist. ")