Did I find the right examples for you? yes no

All Samples(32)  |  Call(17)  |  Derive(0)  |  Import(15)

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/rpm.py   oe-core(Download)
import unittest
import os
import fnmatch
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasFeature("package-management"):
            skipModule("rpm module skipped: target doesn't have package-management in IMAGE_FEATURES")
def setUpModule():
    if not oeRuntimeTest.hasFeature("package-management"):
            skipModule("rpm module skipped: target doesn't have package-management in IMAGE_FEATURES")
    if "package_rpm" != oeRuntimeTest.tc.d.getVar("PACKAGE_CLASSES", True).split()[0]:
            skipModule("rpm module skipped: target doesn't have rpm as primary package manager")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/systemd.py   oe-core(Download)
import unittest
import re
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasFeature("systemd"):
            skipModule("target doesn't have systemd in DISTRO_FEATURES")
    if "systemd" != oeRuntimeTest.tc.d.getVar("VIRTUAL-RUNTIME_init_manager", True):
            skipModule("systemd is not the init manager for this image")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/syslog.py   oe-core(Download)
import unittest
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasPackage("syslog"):
        skipModule("No syslog package in image")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/xorg.py   oe-core(Download)
import unittest
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasFeature("x11-base"):
            skipModule("target doesn't have x11 in IMAGE_FEATURES")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/x32lib.py   oe-core(Download)
import unittest
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
        #check if DEFAULTTUNE is set and it's value is: x86-64-x32
        defaulttune = oeRuntimeTest.tc.d.getVar("DEFAULTTUNE", True)
        if "x86-64-x32" not in defaulttune:
            skipModule("DEFAULTTUNE is not set to x86-64-x32")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/ssh.py   oe-core(Download)
import subprocess
import unittest
import sys
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not (oeRuntimeTest.hasPackage("dropbear") or oeRuntimeTest.hasPackage("openssh")):
        skipModule("No ssh package in image")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/scp.py   oe-core(Download)
import os
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import skipUnlessPassed
 
def setUpModule():
    if not (oeRuntimeTest.hasPackage("dropbear") or oeRuntimeTest.hasPackage("openssh-sshd")):
        skipModule("No ssh package in image")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/scanelf.py   oe-core(Download)
import unittest
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasPackage("pax-utils"):
        skipModule("pax-utils package not installed")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/python.py   oe-core(Download)
import unittest
import os
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasPackage("python"):
        skipModule("No python package in the image")

src/o/e/oe-core-HEAD/meta/lib/oeqa/runtime/perl.py   oe-core(Download)
import unittest
import os
from oeqa.oetest import oeRuntimeTest, skipModule
from oeqa.utils.decorators import *
 
def setUpModule():
    if not oeRuntimeTest.hasPackage("perl"):
        skipModule("No perl package in the image")

  1 | 2  Next