oeqa: runtime: java: Add package check for java
PATCH 1/1 oeqa: runtime: java: Add package check for java
From: Wes Lindauer <[email protected]>
Before testing whether java exists, check to see if one of the java packages is installed on the target. Otherwise, the test will fail.
Signed-off-by Wes Lindauer <[email protected]>
--- lib/oeqa/runtime/cases/java.py | 1 + 1 file changed, 1 insertion(+)
lib/oeqa/runtime/cases/java.py +1 -0
@@ -20,6 +20,7 @@ class JavaTest(OERuntimeTestCase): cls.tc.target.run('rm %s' % dst) @OETestDepends(['ssh.SSHTest.test_ssh']) + @OEHasPackage(["openjdk-7-jre", "openjdk-7", "openjre-8", "openjdk-8"]) def test_java_exists(self): status, output = self.target.run('which java') msg = 'java binary not in PATH or not on target.'
Signature · 1 line
2.21.3