1from tests.package.test_python import TestPythonPackageBase 2 3 4class TestPythonPy3Jc(TestPythonPackageBase): 5 __test__ = True 6 # We deliberately run the test without the optional dependencies, 7 # as this configuration is less tested upstream. 8 config = TestPythonPackageBase.config + \ 9 """ 10 BR2_PACKAGE_PYTHON3=y 11 BR2_PACKAGE_PYTHON_JC=y 12 """ 13 timeout = 60 14 15 def test_run(self): 16 self.login() 17 cmd = "jc -h > /dev/null 2>&1" 18 self.assertRunOk(cmd, timeout=self.timeout) 19 cmd = "jc id | grep -q root" 20 self.assertRunOk(cmd, timeout=self.timeout) 21 cmd = "jc env | grep -q PATH" 22 self.assertRunOk(cmd, self.timeout) 23