Home
last modified time | relevance | path

Searched refs:join (Results 1 – 25 of 1184) sorted by relevance

12345678910>>...48

/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A D_sstatetests_noauto.py20 self.builddir = os.path.join(os.environ.get('BUILDDIR'))
24 bitbake("-g " + ' '.join(map(str, primary_targets)))
25 with open(os.path.join(self.builddir, 'pn-buildlist'), 'r') as pnfile:
32 os.mkdir(os.path.join(builddir, 'conf'))
33 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/local.conf'), os.path.join(builddir…
39 ftools.append_file(os.path.join(builddir, 'conf/selftest.inc'), config[key])
40 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/bblayers.conf'), os.path.join(build…
42 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/auto.conf'), os.path.join(builddir,…
52 os.mkdir(os.path.join(dst, root.split(src)[1][1:]))
54 … os.link(os.path.join(root, sstate_file), os.path.join(dst, root.split(src)[1][1:], sstate_file))
[all …]
H A Dusergrouptests.py34 repropassdir = os.path.join(metaselftestpath, "conf/include")
36 etcdir=os.path.join(os.path.join(os.path.join(get_bb_var("TMPDIR"), "work"), \
37 …os.path.join(get_bb_var("MACHINE").replace("-","_")+"-poky-linux", "core-image-minimal/1.0/rootfs/…
38 … shutil.copy(os.path.join(etcdir, "passwd"), os.path.join(repropassdir, "reproducable-passwd"))
39 shutil.copy(os.path.join(etcdir, "group"), os.path.join(repropassdir, "reproducable-group"))
41 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/local.conf'), os.path.join(os.envir…
49 …shutil.copyfile(os.path.join(os.environ.get('BUILDDIR'), 'conf/local.conf.orig'), os.path.join(os.…
H A Dliboe.py27 testloc = oe.path.join(self.tmp_dir, 'liboetests')
28 src = oe.path.join(testloc, 'src')
29 dst = oe.path.join(testloc, 'dst')
35 open(oe.path.join(src, testfilename), 'w+b').close()
39 fileindst = os.path.isfile(oe.path.join(dst, testfilename))
52 testloc = oe.path.join(self.tmp_dir, 'liboetests')
53 src = oe.path.join(testloc, 'src')
54 dst = oe.path.join(testloc, 'dst')
68 open(oe.path.join(src, testfilename), 'w+b').close()
69 …runCmd('%s/setfattr -n user.oetest -v "testing liboe" %s' % (bindir, oe.path.join(src, testfilenam…
[all …]
H A Ddevtool.py29 corecopydir = os.path.join(templayerdir, 'core-copy')
30 bblayers_conf = os.path.join(os.environ['BUILDDIR'], 'conf', 'bblayers.conf')
58 newmetapath = os.path.join(corecopydir, os.path.relpath(oldmetapath, oldreporoot))
74 pth = os.path.join(oldreporoot, relpth)
77 destdir = os.path.join(corecopydir, relpth)
81 destdir = os.path.join(corecopydir, os.path.dirname(relpth))
98 bblayers_conf = os.path.join(os.environ['BUILDDIR'], 'conf', 'bblayers.conf')
107 self.workspacedir = os.path.join(self.builddir, 'workspace')
114 self.assertTrue(os.path.isdir(os.path.join(repo_dir, '.git')),
202 …being bbappended by another layer - bbappends found:\n %s' % (testrecipe, '\n '.join(bbappends)))
[all …]
H A Darchiver.py38 src_path = os.path.join(bb_vars['DEPLOY_DIR_SRC'], bb_vars['TARGET_SYS'])
69 src_path_target = os.path.join(bb_vars['DEPLOY_DIR_SRC'], bb_vars['TARGET_SYS'])
70 src_path_native = os.path.join(bb_vars['DEPLOY_DIR_SRC'], bb_vars['BUILD_SYS'])
102 bitbake('-c clean %s %s' % (' '.join(target_recipes), ' '.join(native_recipes)))
103 bitbake('-c deploy_archives %s %s' % (' '.join(target_recipes), ' '.join(native_recipes)))
106 src_path_target = os.path.join(bb_vars['DEPLOY_DIR_SRC'], bb_vars['TARGET_SYS'])
107 src_path_native = os.path.join(bb_vars['DEPLOY_DIR_SRC'], bb_vars['BUILD_SYS'])
181 glob_str = os.path.join(bb_vars['DEPLOY_DIR_SRC'], bb_vars['BUILD_SYS'], '%s-*' % (target))
185 archive_path = os.path.join(glob_result[0], target_file_name)
262 glob_str = os.path.join(bb_vars['DEPLOY_DIR_SRC'], bb_vars['TARGET_SYS'], '%s-*' % (target))
[all …]
H A Drecipetool.py48 self.testfile = os.path.join(self.tempdir, 'testfile')
72 filesdir = os.path.join(os.path.dirname(bbappendfile), testrecipe)
74 …self.assertTrue(os.path.isfile(os.path.join(filesdir, expectedfile)), 'Expected file %s to be copi…
80 createdfiles.append(os.path.relpath(os.path.join(root, f), filesdir))
133 testfile2 = os.path.join(self.corebase, 'oe-init-build-env')
147 copiedfile = os.path.join(os.path.dirname(bbappendfile), 'coreutils', testfile2name)
172 testfile2 = os.path.join(self.corebase, 'oe-init-build-env')
318 exttemplayerdir = os.path.join(self.tempdir, 'extlayer')
325 createdfiles.append(os.path.relpath(os.path.join(root, f), exttemplayerdir))
360 tempsrc = os.path.join(self.tempdir, 'srctree')
[all …]
H A Druntime_test.py47 test_path = os.path.join(testexport_dir, "oe-test")
48 data_file = os.path.join(testexport_dir, 'data', 'testdata.json')
49 manifest = os.path.join(testexport_dir, 'data', 'manifest')
90 tarball_path = os.path.join(testexport_dir, sdk_dir, tarball_name)
171 signing_key_dir = os.path.join(self.testlayer_path, 'files', 'signing')
172 …-batch --homedir %s --import %s' % (self.gpg_home, self.gpg_home, os.path.join(signing_key_dir, 'k…
175 …features += 'PACKAGE_FEED_GPG_PASSPHRASE_FILE = "%s"\n' % os.path.join(signing_key_dir, 'key.passp…
207 signing_key_dir = os.path.join(self.testlayer_path, 'files', 'signing')
208 …-batch --homedir %s --import %s' % (self.gpg_home, self.gpg_home, os.path.join(signing_key_dir, 'k…
211 …features += 'PACKAGE_FEED_GPG_PASSPHRASE_FILE = "%s"\n' % os.path.join(signing_key_dir, 'key.passp…
[all …]
H A Dwic.py61 self.resultdir = os.path.join(self.builddir, "wic-tmp")
86 WicTestCase.wicenv_cache[image] = os.path.join(stdir, machine, 'imgdata')
169 out = glob(os.path.join(
201 out = glob(os.path.join(self.resultdir, "%s-*.direct" % wksname))
222 self.assertEqual(1, len(glob(os.path.join (self.resultdir, "wictestdisk-*.direct"))))
229 self.assertEqual(1, len(glob(os.path.join(self.resultdir, "directdisk-*.direct"))))
242 self.assertEqual(1, len(glob(os.path.join(self.resultdir, "HYBRID_ISO_IMG-*.direct"))))
243 self.assertEqual(1, len(glob(os.path.join (self.resultdir, "HYBRID_ISO_IMG-*.iso"))))
250 self.assertEqual(1, len(glob(os.path.join(self.resultdir, "qemux86-directdisk-*direct"))))
257 self.assertEqual(1, len(glob(os.path.join(self.resultdir, "mkefidisk-*direct"))))
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dtestexport.py47 features_list = "_".join(features_list)
80 arch_rpm_dir = os.path.join(rpm_deploy_dir, arch)
81 extracted_bin_dir = os.path.join(exportpath,"binaries", arch, "extracted_binaries")
82 packaged_bin_dir = os.path.join(exportpath,"binaries", arch, "packaged_binaries")
90 …native_rpm_dir = os.path.join(rpm_deploy_dir, get_dest_folder("{} nativesdk".format(d.getVar("BUIL…
97 …sh.copy(os.path.join(rpm_deploy_dir, native_rpm_dir, item), os.path.join(d.getVar("TEST_EXPORT_DIR…
112 sh.copy(os.path.join(arch_rpm_dir, item), packaged_bin_dir)
118 … destination = os.path.join(extracted_bin_dir,param_list[0], param_list[1])
120 extract_binary(os.path.join(arch_rpm_dir, item), destination)
127 destination = os.path.join(extracted_bin_dir,param_list[0],
[all …]
/openbmc/u-boot/test/py/tests/test_fs/
H A Dtest_basic.py28 assert(re.search('2621440000 *%s' % BIG_FILE, ''.join(output)))
29 assert(re.search('1048576 *%s' % SMALL_FILE, ''.join(output)))
53 assert('filesize=100000' in ''.join(output))
61 assert('filesize=100000' in ''.join(output))
76 assert('filesize=9c400000' in ''.join(output))
89 assert('filesize=100000' in ''.join(output))
95 assert(md5val[0] in ''.join(output))
108 assert('filesize=100000' in ''.join(output))
114 assert(md5val[1] in ''.join(output))
129 assert('filesize=100000' in ''.join(output))
[all …]
H A Dtest_ext.py30 assert('20480 bytes written' in ''.join(output))
38 assert(md5val[0] in ''.join(output))
52 assert('20480 bytes written' in ''.join(output))
60 assert(md5val[0] in ''.join(output))
74 assert('Unable to write "/dir1/none/' in ''.join(output))
98 assert('filesize=6400' in ''.join(output))
106 assert(md5val[1] in ''.join(output))
130 assert('filesize=2800' in ''.join(output))
138 assert(md5val[2] in ''.join(output))
162 assert('filesize=0' in ''.join(output))
[all …]
/openbmc/qemu/docs/
H A Dconf.py48 sys.path.insert(0, os.path.join(qemu_docdir, "sphinx"))
49 sys.path.insert(0, os.path.join(qemu_docdir, "../scripts"))
79 templates_path = [os.path.join(qemu_docdir, '_templates')]
110 with open(os.path.join(qemu_docdir, '../VERSION')) as f:
181 rst_epilog = "".join([
190 with open(os.path.join(qemu_docdir, 'defs.rst.inc')) as f:
231 html_logo = os.path.join(qemu_docdir, "../ui/icons/qemu_128x128.png")
233 html_favicon = os.path.join(qemu_docdir, "../ui/icons/qemu_32x32.png")
238 html_static_path = [os.path.join(qemu_docdir, "sphinx-static")]
344 kerneldoc_bin = ['perl', os.path.join(qemu_docdir, '../scripts/kernel-doc')]
[all …]
/openbmc/openbmc/poky/meta/lib/bblayers/
H A Dbuildconf.py31 confdir = os.path.join(os.environ["BBPATH"], "conf")
32 destdir = os.path.join(templatepath, "conf", "templates", templatename)
35 with open(os.path.join(confdir, "local.conf")) as src:
36 with open(os.path.join(destdir, "local.conf.sample"), 'w') as dest:
39 with open(os.path.join(confdir, "bblayers.conf")) as src:
40 with open(os.path.join(destdir, "bblayers.conf.sample"), 'w') as dest:
47 with open(os.path.join(destdir, "conf-summary.txt"), 'w') as dest:
49 with open(os.path.join(destdir, "conf-notes.txt"), 'w') as dest:
57 .format(destdir, os.path.join(destdir, "conf-summary.txt"), os.path.join(destdir, "conf-notes.txt")…
72 … in one of the currently enabled layers:\n{}".format(args.layerpath, "\n".join([l[0] for l in laye…
[all …]
H A Dcreate.py24 with open(os.path.join(os.path.dirname(__file__), template_dir, template)) as fd:
25 lines = ''.join(fd.readlines())
37 conf = os.path.join(layerdir, 'conf')
45 readme = os.path.join(layerdir, 'README')
52 license_src = os.path.join(dn(dn(dn(__file__))), copying)
53 license_dst = os.path.join(layerdir, copying)
62 layerconf = os.path.join(conf, 'layer.conf')
68 example = os.path.join(layerdir, 'recipes-' + args.examplerecipe, args.examplerecipe)
70 with open(os.path.join(example, args.examplerecipe + '_%s.bb') % args.version, 'w') as fd:
/openbmc/openbmc/poky/scripts/lib/devtool/
H A Dsdk.py73 sstate_dir = os.path.join(dest_sdk, 'sstate-cache')
93 curr_chksum = bb.utils.sha256_file(os.path.join(basepath, fpath))
95 …logger.debug('File %s changed: old csum = %s, new = %s' % (os.path.join(basepath, fpath), curr_chk…
108 old_locked_sig_file_path = os.path.join(basepath, 'conf/locked-sigs.inc')
119 layers_dir = os.path.join(basepath, 'layers')
120 conf_dir = os.path.join(basepath, 'conf')
133 os.makedirs(os.path.join(tmpsdk_dir, 'conf'))
134 new_locked_sig_file_path = os.path.join(tmpsdk_dir, 'conf', 'locked-sigs.inc')
136 tmpmanifest = os.path.join(tmpsdk_dir, 'conf', 'sdk-conf-manifest')
148 if os.path.exists(os.path.join(basepath, 'layers/.git')):
[all …]
/openbmc/bmcweb/scripts/
H A Dupdate_schemas.py27 redfish_core_path = os.path.join(SCRIPT_DIR, "..", "redfish-core")
29 cpp_path = os.path.realpath(os.path.join(redfish_core_path, "include"))
31 schema_path = os.path.join(redfish_core_path, "schema", "dmtf", "csdl")
32 json_schema_path = os.path.join(
37 schema_installed_path = os.path.join(schema_path, "..", "installed")
112 with open(os.path.join(schema_path, csdl_file), "wb") as schema_out:
113 content = zip_ref.read(os.path.join(VERSION + "/csdl", csdl_file))
119 os.path.join("..", "csdl", csdl_file),
120 os.path.join(schema_installed_path, csdl_file),
134 zip_filepath = os.path.join(VERSION + "/json-schema", versions[0])
[all …]
/openbmc/openbmc/poky/meta/lib/oe/package_manager/deb/
H A D__init__.py15 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "lists", "partial"))
16 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "apt.conf.d"))
17 bb.utils.mkdirhier(os.path.join(self.apt_conf_dir, "preferences.d"))
19 with open(os.path.join(self.apt_conf_dir, "preferences"),
22 with open(os.path.join(self.apt_conf_dir, "sources.list"),
27 with open(os.path.join(self.d.expand("${STAGING_ETCDIR_NATIVE}"),
35 self.apt_conf_dir = os.path.join(self.d.expand("${APTCONF_TARGET}"),
37 self.apt_conf_file = os.path.join(self.apt_conf_dir, "apt.conf")
61 arch_dir = os.path.join(self.deploy_dir, arch)
69 release_file = os.path.join(arch_dir, "Release")
[all …]
/openbmc/skeleton/pysystemmgr/obmc/system/
H A D__init__.py2 from os.path import join
7 for gc in glob(join(path, pattern)):
8 with open(join(gc, "label")) as f:
11 with open(join(gc, "base")) as f:
14 open(join(path, "gpiochip"))
21 offset = int("".join(list(filter(str.isdigit, name))))
/openbmc/openbmc/meta-arm/meta-arm-systemready/classes/
H A Darm-systemready-acs.bbclass32 imgfile = os.path.join(d.getVar('UNPACKDIR'), d.getVar('IMAGE_FILENAME'))
33 deployfile = os.path.join(deploydir, d.getVar('IMAGE_NAME') + suffix)
34 linkfile = os.path.join(deploydir, d.getVar('IMAGE_LINK_NAME') + suffix)
52 report_file = os.path.join(unpackdir, "report.txt")
53 report_file_dest = os.path.join(deploydir, "report.txt")
57 report_file_to_copy = os.path.join(unpackdir, "systemready-ir-template",
62 fname = os.path.join(deploydir, d.getVar('IMAGE_LINK_NAME') + ".manifest")
93 systemready_scripts_dir = os.path.join(d.getVar('STAGING_LIBDIR_NATIVE'),
95 edk2_test_parser_dir = os.path.join(d.getVar('STAGING_LIBDIR_NATIVE'),
97 deployfile = os.path.join(deploy_dir_image, d.getVar('IMAGE_LINK_NAME')
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Dfetch.py448 self.dldir = os.path.join(self.tempdir, "download")
451 self.unpackdir = os.path.join(self.tempdir, "unpacked")
453 persistdir = os.path.join(self.tempdir, "persistdata")
738 cwd=os.path.join(self.unpackdir, 'git'))
742 archive = tarfile.open(os.path.join(self.dldir, self.recipe_tarball))
761 self.localsrcdir = os.path.join(self.tempdir, 'localsrc')
763 touch(os.path.join(self.localsrcdir, 'a'))
764 touch(os.path.join(self.localsrcdir, 'b'))
765 touch(os.path.join(self.localsrcdir, 'c@d'))
766 os.makedirs(os.path.join(self.localsrcdir, 'dir'))
[all …]
/openbmc/openbmc/poky/meta/files/
H A Dext-sdk-prepare.py27 logdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'tmp', 'log', 'cooker')
31 logdir = os.path.join(logdir, mcdir[0])
32 logfiles = [os.path.join(logdir, fn) for fn in os.listdir(logdir)]
35 return os.path.join(logdir, logfiles[-1])
46 sdk_targets = ' '.join(sys.argv[2:]).split()
48 prserv = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'conf', 'prserv.inc')
70 logf.write('Preparing SDK for %s...\n' % ', '.join(sdk_targets))
72 …ret = run_command_interruptible('BB_SETSCENE_ENFORCE=1 bitbake --quiet %s' % ' '.join(sdk_targets))
/openbmc/openbmc/poky/meta/lib/oe/package_manager/rpm/
H A D__init__.py30 signer.detach_sign(os.path.join(deploy_dir, 'repodata', 'repomd.xml'),
39 bb.utils.remove(os.path.join(self.deploy_dir, "repodata"), recurse=True)
46 dir_path = oe.path.join(self.deploy_dir, dir)
79 self.rpm_repo_dir = oe.path.join(self.d.getVar('WORKDIR'), rpm_repo_workdir)
80 …create_packages_dir(self.d, oe.path.join(self.rpm_repo_dir, "rpm"), d.getVar("DEPLOY_DIR_RPM"), "p…
102 f.write(":".join(archs))
108 with open(oe.path.join(self.target_rootfs, "etc/dnf/dnf.conf"), 'w') as f:
133 pubkey_path = oe.path.join(self.d.getVar('B'), 'rpm-key')
141 … "returned %d:\n%s" % (' '.join(cmd), e.returncode, e.output.decode("utf-8")))
167 bb.utils.mkdirhier(oe.path.join(self.target_rootfs, "etc", "yum.repos.d"))
[all …]
/openbmc/openbmc/meta-arm/meta-arm/lib/oeqa/runtime/cases/
H A Dftpm.py20 self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
25 self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
26 self.assertEqual(output, "2", msg='\n'.join([cmd, output]))
31 self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
36 self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
41 self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
/openbmc/openbmc/poky/bitbake/lib/toaster/bldcontrol/
H A Dlocalhostbecontroller.py155 … localdirname = os.path.join(self.be.sourcedir, self.getGitCloneDirectory(giturl, commit))
189 … if self.pokydirname is None and os.path.exists(os.path.join(localdirname, "oe-init-build-env")):
194 if not os.path.exists(os.path.join(self.pokydirname, 'bitbake')):
196 …lone -b \"%s\" \"%s\" \"%s\" " % (bitbake.commit, bitbake.giturl, os.path.join(self.pokydirname, '…
200 localdirpath = os.path.join(localdirname, dirpath)
214 if os.path.exists(os.path.join(self.be.sourcedir, "oe-init-build-env")):
220 …if os.path.exists(os.path.join(layer.layer_version.layer.local_source_dir,"..","oe-init-build-env"…
222 … self.pokydirname = os.path.join(layer.layer_version.layer.local_source_dir,"..")
254 layerpath = os.path.join(self.be.builddir,
259 path = os.path.join(layerpath, name)
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/
H A Dcase.py34 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'],
56 not in ftools.read_file(os.path.join(cls.builddir, "conf/local.conf")):
57 …cls.logger.info("Adding: \"include selftest.inc\" in %s" % os.path.join(cls.builddir, "conf/local.…
58 ftools.append_file(os.path.join(cls.builddir, "conf/local.conf"), \
62 not in ftools.read_file(os.path.join(cls.builddir, "conf/bblayers.conf")):
64 ftools.append_file(os.path.join(cls.builddir, "conf/bblayers.conf"), \
70 in ftools.read_file(os.path.join(cls.builddir, "conf/local.conf")):
72 ftools.remove_from_file(os.path.join(cls.builddir, "conf/local.conf"), \
[all …]

12345678910>>...48