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(+) 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.' -- 2.21.3
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#89575): https://lists.openembedded.org/g/openembedded-devel/message/89575 Mute This Topic: https://lists.openembedded.org/mt/80714792/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
