From 65ef6ce94225c92908092560a867311a6565eb57 Mon Sep 17 00:00:00 2001 From: Wes Lindauer Date: Wed, 17 Feb 2021 16:11:00 -0500 Subject: oeqa: runtime: java: Add package check for java 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 Signed-off-by: Richard Leitner --- lib/oeqa/runtime/cases/java.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/oeqa/runtime/cases/java.py b/lib/oeqa/runtime/cases/java.py index c1e1498..d366d61 100644 --- a/lib/oeqa/runtime/cases/java.py +++ b/lib/oeqa/runtime/cases/java.py @@ -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.' -- cgit v1.2.3-54-g00ecf