aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oeqa/runtime/cases/javac.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oeqa/runtime/cases/javac.py')
-rw-r--r--lib/oeqa/runtime/cases/javac.py5
1 files changed, 4 insertions, 1 deletions
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')