diff options
Diffstat (limited to 'lib/oeqa/runtime/cases')
-rw-r--r-- | lib/oeqa/runtime/cases/java.py | 2 | ||||
-rw-r--r-- | lib/oeqa/runtime/cases/javac.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/oeqa/runtime/cases/java.py b/lib/oeqa/runtime/cases/java.py index 142a49c..d366d61 100644 --- a/lib/oeqa/runtime/cases/java.py +++ b/lib/oeqa/runtime/cases/java.py @@ -2,7 +2,6 @@ import os from oeqa.runtime.case import OERuntimeTestCase from oeqa.core.decorator.depends import OETestDepends -from oeqa.core.decorator.oeid import OETestID from oeqa.core.decorator.data import skipIfDataVar, skipIfInDataVar from oeqa.runtime.decorator.package import OEHasPackage @@ -21,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.' diff --git a/lib/oeqa/runtime/cases/javac.py b/lib/oeqa/runtime/cases/javac.py index ad6de25..3f11511 100644 --- a/lib/oeqa/runtime/cases/javac.py +++ b/lib/oeqa/runtime/cases/javac.py @@ -2,7 +2,6 @@ import os from oeqa.runtime.case import OERuntimeTestCase from oeqa.core.decorator.depends import OETestDepends -from oeqa.core.decorator.oeid import OETestID from oeqa.runtime.decorator.package import OEHasPackage class JavacTest(OERuntimeTestCase): @@ -19,12 +18,16 @@ class JavacTest(OERuntimeTestCase): dst = '/tmp/test.java /tmp/test.class' cls.tc.target.run('rm %s' % dst) + @OETestDepends(['ssh.SSHTest.test_ssh']) + @OEHasPackage(["openjdk-7", "openjdk-8"]) @OETestDepends(['java.JavaTest.test_java_exists']) def test_javac_exists(self): status, output = self.target.run('which javac') msg = 'javac binary not in PATH or not on target.' self.assertEqual(status, 0, msg=msg) + @OETestDepends(['ssh.SSHTest.test_ssh']) + @OEHasPackage(["openjdk-7", "openjdk-8"]) @OETestDepends(['javac.JavacTest.test_javac_exists']) def test_javac_works(self): status, output = self.target.run('javac /tmp/test.java') |