From ad77d1038674ee23ec62aa0df7acbc50f7c4d6d8 Mon Sep 17 00:00:00 2001 From: Stefan Stanacar Date: Thu, 19 Sep 2013 13:49:35 +0100 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/ldd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta/lib/oeqa/runtime/ldd.py') 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): @skipUnlessPassed('test_ssh') def test_ldd_exists(self): (status, output) = self.target.run('which ldd') - self.assertEqual(status, 0, msg = "ldd does not exist in PATH !") + self.assertEqual(status, 0, msg = "ldd does not exist in PATH: which ldd: %s" % output) @skipUnlessPassed('test_ldd_exists') - def test_ldd(self): + def test_ldd_rtldlist_check(self): (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') self.assertEqual(status, 0, msg = "ldd path not correct or RTLDLIST files don't exist. ") -- cgit v1.2.3-54-g00ecf