diff options
author | Wes Lindauer <wesley.lindauer@gmail.com> | 2021-02-17 16:11:00 -0500 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2021-02-21 07:54:46 +0100 |
commit | 65ef6ce94225c92908092560a867311a6565eb57 (patch) | |
tree | 4585f67122ce49f83e03dc5cc5bd64e9b33bd286 /lib/oeqa | |
parent | 2cf23656eddbf77ac0ce78f7840f8f40e18199f4 (diff) | |
download | meta-java-65ef6ce94225c92908092560a867311a6565eb57.tar.gz |
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 <wesley.lindauer@gmail.com>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Diffstat (limited to 'lib/oeqa')
-rw-r--r-- | lib/oeqa/runtime/cases/java.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): | |||
20 | cls.tc.target.run('rm %s' % dst) | 20 | cls.tc.target.run('rm %s' % dst) |
21 | 21 | ||
22 | @OETestDepends(['ssh.SSHTest.test_ssh']) | 22 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
23 | @OEHasPackage(["openjdk-7-jre", "openjdk-7", "openjre-8", "openjdk-8"]) | ||
23 | def test_java_exists(self): | 24 | def test_java_exists(self): |
24 | status, output = self.target.run('which java') | 25 | status, output = self.target.run('which java') |
25 | msg = 'java binary not in PATH or not on target.' | 26 | msg = 'java binary not in PATH or not on target.' |