summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-12-11 23:26:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-13 16:32:15 +0000
commit2de9b1e611e5047afb540f98756994925c22e446 (patch)
treeb566b6ba2f639b6599b24426f5701e2e6f85d84e /meta/lib
parent55964b33b561397287779ee474170790dfd03e85 (diff)
downloadopenembedded-core-contrib-2de9b1e611e5047afb540f98756994925c22e446.tar.gz
openembedded-core-contrib-2de9b1e611e5047afb540f98756994925c22e446.tar.bz2
openembedded-core-contrib-2de9b1e611e5047afb540f98756994925c22e446.zip
oeqa/sdk: clean up galculator test
Drop redundant imports and variables, and use os.makedirs() instead of bb.utils.mkdirhier(). Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/sdk/cases/buildgalculator.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildgalculator.py b/meta/lib/oeqa/sdk/cases/buildgalculator.py
index 7beb55884d..164a695637 100644
--- a/meta/lib/oeqa/sdk/cases/buildgalculator.py
+++ b/meta/lib/oeqa/sdk/cases/buildgalculator.py
@@ -3,17 +3,14 @@ import subprocess
import tempfile
import unittest
-import bb
-
from oeqa.sdk.case import OESDKTestCase
-from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject
-
from oeqa.utils.subprocesstweak import errors_have_output
errors_have_output()
class GalculatorTest(OESDKTestCase):
- td_vars = ['DATETIME']
-
+ """
+ Test that autotools and GTK+ 3 compiles correctly.
+ """
def setUp(self):
if not (self.tc.hasTargetPackage("gtk+3", multilib=True) or \
self.tc.hasTargetPackage("libgtk-3.0", multilib=True)):
@@ -33,8 +30,8 @@ class GalculatorTest(OESDKTestCase):
subprocess.check_output(["tar", "xf", tarball, "-C", testdir])
self.assertTrue(os.path.isdir(dirs["source"]))
+ os.makedirs(dirs["build"])
- bb.utils.mkdirhier(dirs["build"])
self._run("cd {source} && autoreconf -i -f -I $OECORE_TARGET_SYSROOT/usr/share/aclocal -I m4".format(**dirs))
self._run("cd {build} && {source}/configure $CONFIGURE_FLAGS".format(**dirs))
self._run("cd {build} && make -j".format(**dirs))