Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 1520) sorted by relevance

12345678910>>...61

/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dtestexport.py9 import os, re, glob as g, shutil as sh,sys
37 check_env = True if ("/scripts" and "/bitbake/bin") in os.getenv("PATH") else False
70 os.chdir(dest_pth)
72 os.chdir("%s" % os.sep)# this is for native package
79 arch = get_dest_folder(d.getVar("TUNE_FEATURES"), os.listdir(rpm_deploy_dir))
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")
85 if not os.path.exists(extracted_bin_dir): bb.utils.mkdirhier(extracted_bin_dir)
86 if not os.path.exists(packaged_bin_dir): bb.utils.mkdirhier(packaged_bin_dir)
[all …]
/openbmc/openbmc/poky/meta/lib/oe/
H A Dpath.py11 import os.path
15 return os.path.normpath("/".join(paths))
30 return os.path.relpath(dest, src)
34 if not os.path.islink(path):
36 link = os.readlink(path)
37 if not os.path.isabs(link):
56 os.remove(path)
57 os.symlink(base, path)
66 for walkroot, dirs, files in os.walk(basedir):
68 path = os.path.join(walkroot, file)
[all …]
H A Dcopy_buildsystem.py22 mode = os.stat(src).st_mode
36 self.layerdirs = [os.path.abspath(pth) for pth in d.getVar('BBLAYERS').split()]
48 corebase = os.path.abspath(self.d.getVar('COREBASE'))
53 layers.append(os.path.join(corebase, 'meta-skeleton'))
71 layernames = [os.path.basename(layer) for layer in layers]
84 layerconf = os.path.join(layer, 'conf', 'layer.conf')
85 layernewname = os.path.basename(layer)
87 if os.path.exists(layerconf):
100 if corebase == os.path.dirname(layer):
101 layerdestpath += '/' + os.path.basename(corebase)
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A D_sstatetests_noauto.py7 import os
20 self.builddir = os.path.join(os.environ.get('BUILDDIR'))
25 with open(os.path.join(self.builddir, 'pn-buildlist'), 'r') as pnfile:
30 os.mkdir(builddir)
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,…
47 os.mkdir(dst)
[all …]
H A Dusergrouptests.py7 import os
34 repropassdir = os.path.join(metaselftestpath, "conf/include")
35 os.makedirs(repropassdir)
36 etcdir=os.path.join(os.path.join(os.path.join(get_bb_var("TMPDIR"), "work"), \
37os.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 Drecipetool.py8 import os
48 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…
78 for root, _, files in os.walk(filesdir):
80 createdfiles.append(os.path.relpath(os.path.join(root, f), filesdir))
133 testfile2 = os.path.join(self.corebase, 'oe-init-build-env')
134 testfile2name = os.path.basename(testfile2)
147 copiedfile = os.path.join(os.path.dirname(bbappendfile), 'coreutils', testfile2name)
154 ls = os.path.realpath("/bin/ls")
[all …]
H A Dwic.py11 import os
61 self.resultdir = os.path.join(self.builddir, "wic-tmp")
86 WicTestCase.wicenv_cache[image] = os.path.join(stdir, machine, 'imgdata')
168 wksname = os.path.splitext(os.path.basename(wks.name))[0]
169 out = glob(os.path.join(
178 for file in os.listdir(tmpdir):
200 wksname = os.path.splitext(os.path.basename(wks.name))[0]
201 out = glob(os.path.join(self.resultdir, "%s-*.direct" % wksname))
210 for file in os.listdir(tmpdir):
222 self.assertEqual(1, len(glob(os.path.join (self.resultdir, "wictestdisk-*.direct"))))
[all …]
H A Dsigning.py9 import os
31 self.pub_key_path = os.path.join(self.testlayer_path, 'files', 'signing', "key.pub")
32 self.secret_key_path = os.path.join(self.testlayer_path, 'files', 'signing', "key.secret")
46 origenv = os.environ.copy()
48 for e in os.environ:
49 if builddir + "/" in os.environ[e]:
50 os.environ[e] = os.environ[e].replace(builddir + "/", newbuilddir + "/")
51 if os.environ[e].endswith(builddir):
52 os.environ[e] = os.environ[e].replace(builddir, newbuilddir)
54 os.chdir(newbuilddir)
[all …]
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/
H A Drootfs.py15 import os
37 if os.path.isabs(path):
44 full_path = os.path.abspath(os.path.join(rootfs_dir, path))
45 if not full_path.startswith(os.path.realpath(rootfs_dir)):
53 if rootfs_dir and os.path.isdir(rootfs_dir):
54 return os.path.realpath(rootfs_dir)
57 if not os.path.isdir(image_rootfs_dir):
62 return os.path.realpath(image_rootfs_dir)
97 part.has_fstab = os.path.exists(os.path.join(part.rootfs_dir, "etc/fstab"))
98 pseudo_dir = os.path.join(part.rootfs_dir, "../pseudo")
[all …]
/openbmc/bmcweb/scripts/
H A Dupdate_schemas.py2 import os
14 SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
16 proxies = {"https": os.environ.get("https_proxy", None)}
27 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")
71 os.makedirs(schema_path)
74 os.makedirs(json_schema_path)
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/websocketpp/websocketpp-0.8.2/
H A D857.patch21 -import os, sys, commands
22 +import os, sys
24 env = Environment(ENV = os.environ)
27 -if os.environ.has_key('CXX'):
28 +if 'CXX' in os.environ:
29 env['CXX'] = os.environ['CXX']
31 -if os.environ.has_key('DEBUG'):
32 +if 'DEBUG' in os.environ:
33 env['DEBUG'] = os.environ['DEBUG']
35 -if os.environ.has_key('CXXFLAGS'):
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/builds/
H A Dbuildtest.py10 import os
36 current_builddir = os.environ.get("BUILDDIR")
42 oe_init_build_env_path = os.path.join(
43 os.path.dirname(os.path.abspath(__file__)),
44 os.pardir,
45 os.pardir,
46 os.pardir,
47 os.pardir,
48 os.pardir,
51 if not os.path.exists(oe_init_build_env_path):
[all …]
/openbmc/openbmc/poky/scripts/
H A Doe-setup-build10 import os
14 return os.path.abspath(os.path.join(os.path.dirname(__file__), '.oe-layers.json'))
17 return os.path.join(topdir, "build-{}".format(template))
20 if not os.path.exists(layers_file):
26 template_dir = os.path.join(os.path.dirname(layers_file), layer, 'conf','templates')
27 if os.path.exists(template_dir):
28 for d in sorted(os.listdir(template_dir)):
29 templatepath = os.path.join(template_dir,d)
30 if not os.path.isfile(os.path.join(templatepath,'local.conf.sample')):
32 layer_base = os.path.basename(layer)
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/cmake/cmake/
H A Dcmake-setup.py3 import os
13 return os.path.basename(os.environ["OECORE_NATIVE_SYSROOT"])
15 return os.path.basename(os.environ["OECORE_TARGET_SYSROOT"])
17 return os.path.basename(os.environ["TARGET_PREFIX"].strip("-"))
19 return os.environ[name]
22 sysroot = os.environ['OECORE_NATIVE_SYSROOT']
27 template_file = os.path.join(sysroot, 'usr/share/cmake/SDKToolchainConfig.cmake.template')
28 cross_file = os.path.join(sysroot, 'usr/share/cmake/%s-toolchain.cmake' % (os.path.basename(os.envi…
/openbmc/openbmc/poky/scripts/lib/
H A Dscriptpath.py10 import os
11 import os.path
14 basepath = os.path.abspath(os.path.dirname(__file__) + '/../..')
19 basepath = os.path.abspath(os.path.dirname(__file__) + '/../..')
21 if os.path.exists(basepath + '/bitbake/lib/bb'):
25 for pth in os.environ['PATH'].split(':'):
26 if os.path.exists(os.path.join(pth, '../lib/bb')):
27 bitbakepath = os.path.abspath(os.path.join(pth, '..'))
/openbmc/openbmc-test-automation/lib/
H A Dgen_call_robot.py9 import os
21 os.path.dirname(
22 os.path.dirname(importlib.util.find_spec("gen_robot_print").origin)
24 + os.sep
50 outputdir = os.environ.get(
52 os.environ.get(
53 "STATUS_DIR_PATH", os.environ.get("HOME", ".") + "/status"
65 SAVE_STATUS_POLICY = os.environ.get("SAVE_STATUS_POLICY", "ALWAYS")
116 ROBOT_TEST_BASE_DIR_PATH = os.environ.get("ROBOT_TEST_BASE_DIR_PATH", "")
118 os.environ.get("ROBOT_TEST_RUNNING_FROM_SB", "0")
[all …]
H A Dgen_plug_in.py8 import os
48 if os.path.isdir(candidate_plug_in_base_path):
70 os.path.normpath(plug_in_base_dir_path + plug_in_name) + os.sep
72 if os.path.isdir(candidate_plug_in_dir_path):
90 if os.path.isabs(plug_in_dir_path):
93 os.path.normpath(plug_in_dir_path) + os.sep
95 if not os.path.isdir(candidate_plug_in_dir_path):
117 if not os.path.exists(supports_file_path):
149 DEBUG_SKIP_INTEGRATED = int(os.getenv("DEBUG_SKIP_INTEGRATED", "0"))
161 os.path.dirname(candidate_path) + os.sep
[all …]
/openbmc/openbmc/poky/meta/lib/bblayers/
H A Dbuildconf.py8 import os
15 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
31 confdir = os.path.join(os.environ["BBPATH"], "conf")
32 destdir = os.path.join(templatepath, "conf", "templates", templatename)
33 os.makedirs(destdir, exist_ok=True)
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:
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Dfetch.py17 import os
27 if os.environ.get("BB_SKIP_NETTESTS") == "yes":
36 os.rename(directory, temp_name)
40 os.rename(temp_name, directory)
445 self.origdir = os.getcwd()
448 self.dldir = os.path.join(self.tempdir, "download")
449 os.mkdir(self.dldir)
451 self.unpackdir = os.path.join(self.tempdir, "unpacked")
452 os.mkdir(self.unpackdir)
453 persistdir = os.path.join(self.tempdir, "persistdata")
[all …]
/openbmc/qemu/roms/
H A Dedk2-build.py7 import os
26 if os.path.isfile(gitdir):
30 if not os.path.exists(f'{gitdir}/rebase-merge/msgnum'):
46 return os.path.abspath(cfg['global']['core'])
47 return os.getcwd()
64 if os.environ.get('RPM_PACKAGE_NAME'):
65 version = os.environ.get('RPM_PACKAGE_NAME')
66 version += '-' + os.environ.get('RPM_PACKAGE_VERSION')
67 version += '-' + os.environ.get('RPM_PACKAGE_RELEASE')
72 if os.path.exists(coredir + '/.git'):
[all …]
/openbmc/qemu/tests/functional/
H A Dtest_acpi_bits.py34 import os
70 name = "qemu-bits-%d" % os.getpid()
83 'file,path=%s,id=debugcon' %os.path.join(self.base_temp_dir,
138 self.assertTrue(os.path.exists(bits_config_file))
139 self.assertTrue(os.path.exists(target_config_dir))
151 self.assertTrue(os.path.exists(bits_test_dir))
152 self.assertTrue(os.path.exists(target_test_dir))
154 for filename in os.listdir(bits_test_dir):
155 if os.path.isfile(os.path.join(bits_test_dir, filename)) and \
163 newfilename = os.path.splitext(filename)[0] + '.py'
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/toastermain/
H A Dsettings.py11 import os
19 if os.environ.get("TOASTER_SQLDEBUG", None) is not None:
29 TOASTER_SQLITE_DEFAULT_DIR = os.environ.get('TOASTER_DIR')
74 if 'TZ' in os.environ:
75 TIME_ZONE = os.environ['TZ']
83 for dirpath, dirnames, filenames in os.walk(ZONEINFOPATH):
85 filepath = os.path.join(dirpath, fn)
154 TMPDIR = os.environ.get('TOASTER_DJANGO_TMPDIR', '/tmp')
222 'LOCATION': '%s/toaster_cache_%d' % (TMPDIR, os.getuid()),
228 from os.path import dirname as DN
[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")
40 os.environ['APT_CONFIG'] = self.apt_conf_file
54 apt_ftparchive = bb.utils.which(os.getenv('PATH'), "apt-ftparchive")
[all …]
/openbmc/qemu/docs/
H A Dconf.py29 import os
40 qemu_docdir = os.path.abspath(".")
48 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:
173 confdir = os.getenv('CONFDIR', "/etc/qemu")
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")
[all …]
/openbmc/openbmc/poky/meta/lib/patchtest/selftest/
H A Dselftest9 import os
13 currentdir = os.path.dirname(os.path.abspath(__file__))
14 patchesdir = os.path.join(currentdir, 'files')
15 topdir = os.path.dirname(currentdir)
16 parentdir = os.path.dirname(topdir)
19 repodir = os.path.dirname(os.path.dirname(parentdir))
24 print("Testsuite summary for %s" % os.path.basename(topdir))
39 patchpath = os.path.abspath(os.path.join(root, patch))
57 for root, dirs, patches in os.walk(patchesdir):
72 print("XFAIL: %s (file: %s)" % (testid.strip("."), os.path.basename(patch)))
[all …]

12345678910>>...61