Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 160) sorted by relevance

1234567

/openbmc/openbmc/poky/bitbake/lib/bb/
H A DCOW.py38 def __str__(cls): argument
40 keys = set(cls.__dict__.keys()) - ignored_keys
41 return "<COWDict Level: %i Current Keys: %i>" % (cls.__count__, len(keys))
45 def cow(cls): argument
46 class C(cls):
47 __count__ = cls.__count__ + 1
54 def __setitem__(cls, key, value): argument
57 cls.__hasmutable__ = True
59 setattr(cls, key, value)
61 def __getmutable__(cls, key, readonly=False): argument
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/
H A Dstorage.py15 def storage_mount(cls, tmo=1): argument
17 (status, output) = cls.target.run('mkdir -p %s' % cls.mount_point)
18 (status, output) = cls.target.run('mount %s %s' % (cls.device, cls.mount_point))
20 cls.assertFalse(output, msg = msg)
22 (status, output) = cls.target.run('cat /proc/mounts')
23 match = re.search('%s' % cls.device, output)
25 msg = ('Device %s not mounted.' % cls.device)
26 cls.assertTrue(match, msg = msg)
28 (status, output) = cls.target.run('mkdir -p %s' % cls.test_dir)
30 (status, output) = cls.target.run('rm -f %s/*' % cls.test_dir)
[all …]
H A Dltp_compliance.py20 def setUpClass(cls): argument
21 cls.ltp_startup()
24 def tearDownClass(cls): argument
25 cls.ltp_finishup()
28 def ltp_startup(cls): argument
29 cls.sections = {}
30 cls.failmsg = ""
31 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage')
34 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltpcomp_log')
35 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
[all …]
H A Dltp_stress.py21 def setUpClass(cls): argument
22 cls.ltp_startup()
25 def tearDownClass(cls): argument
26 cls.ltp_finishup()
29 def ltp_startup(cls): argument
30 cls.sections = {}
31 cls.failmsg = ""
32 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage')
35 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltpstress_log')
36 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
[all …]
H A Dltp.py20 def setUpClass(cls): argument
21 cls.ltp_startup()
24 def tearDownClass(cls): argument
25 cls.ltp_finishup()
28 def ltp_startup(cls): argument
29 cls.sections = {}
30 cls.failmsg = ""
31 test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage')
34 cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltp_log')
35 cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp)
[all …]
H A Dopkg.py25 def setUp(cls): argument
27 if cls.tc.td["MULTILIB_VARIANTS"]:
28 allarchfeed = cls.tc.td["TUNE_PKGARCH"]
29 service_repo = os.path.join(cls.tc.td['DEPLOY_DIR_IPK'], allarchfeed)
30 cls.repo_server = HTTPService(service_repo,
31 '0.0.0.0', port=cls.tc.target.server_port,
32 logger=cls.tc.logger)
33 cls.repo_server.start()
36 def tearDown(cls): argument
37 cls.repo_server.stop()
H A Dscons.py16 def setUp(cls): argument
18 src = os.path.join(cls.tc.runtime_files_dir, 'hello.c')
19 cls.tc.target.copyTo(src, dst)
21 src = os.path.join(cls.tc.runtime_files_dir, 'SConstruct')
22 cls.tc.target.copyTo(src, dst)
25 def tearDown(cls): argument
27 cls.tc.target.run('rm %s' % files)
H A Dkernelmodule.py17 def setUp(cls): argument
18 src = os.path.join(cls.tc.runtime_files_dir, 'hellomod.c')
20 cls.tc.target.copyTo(src, dst)
22 src = os.path.join(cls.tc.runtime_files_dir, 'hellomod_makefile')
24 cls.tc.target.copyTo(src, dst)
27 def tearDown(cls): argument
29 cls.tc.target.run('rm %s' % files)
H A Dbuildgalculator.py16 def setUpClass(cls): argument
18 cls.project = TargetBuildProject(cls.tc.target,
20 dl_dir = cls.tc.td['DL_DIR'])
23 def tearDownClass(cls): argument
24 cls.project.clean()
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/
H A Dbootimg-biosplusefi.py87 def __init__(cls): argument
95 cls.__instanciateSubClasses()
98 def __instanciateSubClasses(cls): argument
105 cls.__PCBIOS_MODULE_NAME + ".py")
106 loader = SourceFileLoader(cls.__PCBIOS_MODULE_NAME, modulePath)
109 cls.__imgBiosObj = mod.BootimgPcbiosPlugin()
113 cls.__EFI_MODULE_NAME + ".py")
114 loader = SourceFileLoader(cls.__EFI_MODULE_NAME, modulePath)
117 cls.__imgEFIObj = mod.BootimgEFIPlugin()
120 def do_install_disk(cls, disk, disk_name, creator, workdir, oe_builddir, argument
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Desdk.py57 def update_configuration(cls, image, tmpdir_eSDKQA, env_eSDK, ext_sdk_path): argument
60 oeSDKExtSelfTest.generate_eSDK(cls.image)
62 cls.ext_sdk_path = oeSDKExtSelfTest.get_eSDK_toolchain(cls.image)
63 runCmd("%s -y -d \"%s\"" % (cls.ext_sdk_path, cls.tmpdir_eSDKQA))
65 cls.env_eSDK = oeSDKExtSelfTest.get_esdk_environment('', cls.tmpdir_eSDKQA)
73 with open(os.path.join(cls.tmpdir_eSDKQA, 'conf', 'local.conf'), 'a+') as f:
77 def setUpClass(cls): argument
78 super(oeSDKExtSelfTest, cls).setUpClass()
79 cls.image = 'core-image-minimal'
81 bb_vars = get_bb_vars(['SSTATE_DIR', 'WORKDIR'], cls.image)
[all …]
H A Dkerneldevelopment.py15 def setUpClass(cls): argument
16 super(KernelDev, cls).setUpClass()
18 cls.layername = 'meta-kerneltest'
19 runCmd('bitbake-layers create-layer %s' % cls.layername)
20 runCmd('mkdir -p %s/recipes-kernel/linux/linux-yocto' % cls.layername)
21 cls.recipes_linuxyocto_dir = os.path.join \
22 (cls.builddir, cls.layername, 'recipes-kernel', 'linux', 'linux-yocto')
23 cls.recipeskernel_dir = os.path.dirname(cls.recipes_linuxyocto_dir)
24 runCmd('bitbake-layers add-layer %s' % cls.layername)
27 def tearDownClass(cls): argument
[all …]
H A Dgotoolchain.py35 def setUpClass(cls): argument
36 super(oeGoToolchainSelfTest, cls).setUpClass()
37 cls.tmpdir_SDKQA = tempfile.mkdtemp(prefix='SDKQA')
38 cls.go_path = os.path.join(cls.tmpdir_SDKQA, "go")
41 cls.sdk_path = oeGoToolchainSelfTest.get_sdk_toolchain()
43 runCmd("sh %s -y -d \"%s\"" % (cls.sdk_path, cls.tmpdir_SDKQA))
44 cls.env_SDK = oeGoToolchainSelfTest.get_sdk_environment(cls.tmpdir_SDKQA)
47 def tearDownClass(cls): argument
48 shutil.rmtree(cls.tmpdir_SDKQA, ignore_errors=True)
49 super(oeGoToolchainSelfTest, cls).tearDownClass()
H A Dmeta_ide.py18 def setUpClass(cls): argument
19 super(MetaIDE, cls).setUpClass()
24cls.environment_script = 'environment-setup-%s%s-%s' % (bb_vars['MACHINE_ARCH'], bb_vars['TARGET_V…
25 cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE']
26 cls.environment_script_path = '%s/%s' % (cls.deploydir, cls.environment_script)
27 cls.corebasedir = bb_vars['COREBASE']
28 cls.tmpdir_metaideQA = tempfile.mkdtemp(prefix='metaide')
31 def tearDownClass(cls): argument
32 shutil.rmtree(cls.tmpdir_metaideQA, ignore_errors=True)
33 super(MetaIDE, cls).tearDownClass()
/openbmc/openbmc/poky/meta/lib/oe/
H A Dclassutils.py9 def __init__(cls, name, bases, attrs): argument
10 cls.registry = {}
11 type.__init__(cls, name, bases, attrs)
27 def __init__(cls, name, bases, attrs): argument
28 super(ClassRegistry, cls).__init__(name, bases, attrs)
30 if not cls.implemented:
36 cls.name
38 cls.name = name
39 cls.registry[cls.name] = cls
46 def unregister(cls): argument
[all …]
H A Dspdx30.py250 def __init__(self, cls, required, context=[]): argument
252 self.cls = cls
256 if self.required and not self.cls.IS_ABSTRACT:
257 return self.cls()
261 check_type(value, (self.cls, str))
297 return self.cls.decode(decoder, objectset=objectset)
566 cls = self.__class__
567 if cls._NEEDS_REG:
568 cls._OBJ_PROPERTIES = {}
569 cls._OBJ_IRIS = {}
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/
H A Dcase.py25 def setUpClass(cls): argument
26 super(OESelftestTestCase, cls).setUpClass()
28 cls.testlayer_path = cls.tc.config_paths['testlayer_path']
29 cls.builddir = cls.tc.config_paths['builddir']
31 cls.localconf_path = cls.tc.config_paths['localconf']
32 cls.local_bblayers_path = cls.tc.config_paths['bblayers']
34 cls.testinc_path = os.path.join(cls.tc.config_paths['builddir'],
36 cls.testinc_bblayers_path = os.path.join(cls.tc.config_paths['builddir'],
38 cls.machineinc_path = os.path.join(cls.tc.config_paths['builddir'],
41 cls._track_for_cleanup = [
[all …]
/openbmc/openbmc/poky/meta/lib/patchtest/tests/
H A Dbase.py65 def setUpClass(cls): argument
68 cls.mbox = mailbox.mbox(PatchtestParser.repo.patch.path)
71 cls.unidiff_parse_error = ''
72 cls.patchset = None
74 cls.patchset = unidiff.PatchSet.from_filename(
78 cls.patchset = []
79 cls.unidiff_parse_error = str(upe)
82 cls.commits = []
83 for msg in cls.mbox:
85 cls.commits.append(Base.msg_to_commit(msg))
[all …]
/openbmc/qemu/python/qemu/utils/
H A Dqom_common.py47 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertyInfo': argument
53 return cls(value['name'], value['type'],
78 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertyValue': argument
84 return cls(value['name'], value['type'], value.get('value'))
102 def make(cls, value: Dict[str, Any]) -> 'ObjectPropertiesValues': argument
111 return cls(props)
135 def register(cls, subparsers: Any) -> None: argument
141 subparser = subparsers.add_parser(cls.name, help=cls.help,
142 description=cls.help)
143 cls.configure_parser(subparser)
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/sdkext/cases/
H A Ddevtool.py19 def setUpClass(cls): argument
20 myapp_src = os.path.join(cls.tc.esdk_files_dir, "myapp")
21 cls.myapp_dst = os.path.join(cls.tc.sdk_dir, "myapp")
22 shutil.copytree(myapp_src, cls.myapp_dst)
23 subprocess.check_output(['git', 'init', '.'], cwd=cls.myapp_dst)
24 subprocess.check_output(['git', 'add', '.'], cwd=cls.myapp_dst)
25 subprocess.check_output(['git', 'commit', '-m', "'test commit'"], cwd=cls.myapp_dst)
27 myapp_cmake_src = os.path.join(cls.tc.esdk_files_dir, "myapp_cmake")
28 cls.myapp_cmake_dst = os.path.join(cls.tc.sdk_dir, "myapp_cmake")
29 shutil.copytree(myapp_cmake_src, cls.myapp_cmake_dst)
[all …]
/openbmc/docs/logo/
H A DOpenBMC-Logo.svg1cls-1{fill:#a6a8ab;}.cls-2{fill:url(#linear-gradient);}.cls-3{fill:url(#linear-gradient-2);}.cls-4…
/openbmc/webui-vue/docs/.vuepress/public/
H A Dopenbmc-logo.svg1cls-1{fill:#a6a8ab;}.cls-2{fill:url(#linear-gradient);}.cls-3{fill:url(#linear-gradient-2);}.cls-4…
/openbmc/openbmc/poky/meta-selftest/lib/oeqa/runtime/cases/
H A Ddnf_runtime.py9 def setUpClass(cls): argument
11 cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-")
12 cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'),
13 '0.0.0.0', port=cls.tc.target.server_port,
14 logger=cls.tc.logger)
15 cls.repo_server.start()
18 def tearDownClass(cls): argument
19 cls.repo_server.stop()
20 cls.temp_dir.cleanup()
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dpluginbase.py33 def get_plugins(cls, ptype): argument
39 if not cls._plugin_dirs:
40 cls._plugin_dirs = [os.path.join(os.path.dirname(__file__), 'plugins')]
46 if path not in cls._plugin_dirs and os.path.isdir(path):
47 cls._plugin_dirs.insert(0, path)
51 for pdir in cls._plugin_dirs:
66 def __new__(cls, name, bases, attrs): argument
67 class_type = type.__new__(cls, name, bases, attrs)
89 def do_install_disk(cls, disk, disk_name, creator, workdir, oe_builddir, argument
99 def do_stage_partition(cls, part, source_params, creator, cr_workdir, argument
[all …]
/openbmc/openbmc/meta-security/meta-tpm/lib/oeqa/runtime/cases/
H A Dswtpm.py10 def setUpClass(cls): argument
11 cls.tc.target.run('swtpm_ioctl -s --tcp :2322')
12 cls.tc.target.run('mkdir /tmp/myvtpm2')
13 cls.tc.target.run('chown tss:root /tmp/myvtpm2')
16 def tearDownClass(cls): argument
17 cls.tc.target.run('swtpm_ioctl -s --tcp :2322')
18 cls.tc.target.run('rm -fr /tmp/myvtpm2')

1234567