Home
last modified time | relevance | path

Searched refs:tempdir (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Drunqueue.py55 with tempfile.TemporaryDirectory(prefix="runqueuetest") as tempdir:
58 tasks = self.run_bitbakecmd(cmd, tempdir, sstatevalid)
62 self.shutdown(tempdir)
65 with tempfile.TemporaryDirectory(prefix="runqueuetest") as tempdir:
68 tasks = self.run_bitbakecmd(cmd, tempdir, sstatevalid)
74 self.shutdown(tempdir)
77 with tempfile.TemporaryDirectory(prefix="runqueuetest") as tempdir:
80 tasks = self.run_bitbakecmd(cmd, tempdir, sstatevalid)
85 self.shutdown(tempdir)
88 with tempfile.TemporaryDirectory(prefix="runqueuetest") as tempdir:
[all …]
H A Dparse.py353 with tempfile.TemporaryDirectory() as tempdir:
355 recipename = tempdir + "/recipe.bb"
356 os.makedirs(tempdir + "/classes")
357 with open(tempdir + "/classes/someclass.bbclass", "w") as f:
360 with open(tempdir + "/classes/secondclass.bbclass", "w") as f:
367 os.chdir(tempdir)
373 recipename2 = tempdir + "/recipe2.bb"
424 with tempfile.TemporaryDirectory() as tempdir:
425 recipename = tempdir + "/recipe_unclosed.bb"
429 os.chdir(tempdir)
[all …]
H A Dfetch.py416 self.tempdir = tempfile.mkdtemp(prefix="bitbake-fetch-")
417 self.dldir = os.path.join(self.tempdir, "download")
420 self.unpackdir = os.path.join(self.tempdir, "unpacked")
422 persistdir = os.path.join(self.tempdir, "persistdata")
428 print("Not cleaning up %s. Please remove manually." % self.tempdir)
430 bb.process.run('chmod u+rw -R %s' % self.tempdir)
431 bb.utils.prunedir(self.tempdir)
727 self.localsrcdir = os.path.join(self.tempdir, 'localsrc')
813 src_dir = tempfile.mkdtemp(dir=self.tempdir,
1108 os.chdir(self.tempdir)
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Ddevtool.py348 tempdir = tempfile.mkdtemp(prefix='devtoolqa')
349 self.track_for_cleanup(tempdir)
350 result = runCmd('devtool create-workspace %s' % tempdir)
351 …self.assertTrue(os.path.isfile(os.path.join(tempdir, 'conf', 'layer.conf')), msg = "No workspace c…
353 self.assertIn(tempdir, result.output)
360 self.assertNotIn(tempdir, result.output)
367 tempdir = tempfile.mkdtemp(prefix='devtoolqa')
368 self.track_for_cleanup(tempdir)
372 result = runCmd('wget %s' % url, cwd=tempdir)
373 result = runCmd('tar xfv %s' % os.path.basename(url), cwd=tempdir)
[all …]
H A Dfetch.py62 def write_recipe(self, content, tempdir): argument
63 f = os.path.join(tempdir, "test.bb")
73 …h bb.tinfoil.Tinfoil() as tinfoil, tempfile.TemporaryDirectory(prefix="selftest-fetch") as tempdir:
80 f = self.write_recipe(textwrap.dedent(r), tempdir)
90 f = self.write_recipe(textwrap.dedent(r), tempdir)
99 f = self.write_recipe(textwrap.dedent(r), tempdir)
108 f = self.write_recipe(textwrap.dedent(r), tempdir)
H A Drecipetool.py46 self.tempdir = tempfile.mkdtemp(prefix='recipetoolqa')
47 self.track_for_cleanup(self.tempdir)
48 self.testfile = os.path.join(self.tempdir, 'testfile')
318 exttemplayerdir = os.path.join(self.tempdir, 'extlayer')
360 tempsrc = os.path.join(self.tempdir, 'srctree')
362 recipefile = os.path.join(self.tempdir, 'logrotate_3.12.3.bb')
379 tempsrc = os.path.join(self.tempdir, 'srctree')
381 recipefile = os.path.join(self.tempdir, 'libmatchbox.bb')
397 temprecipe = os.path.join(self.tempdir, 'recipe')
418 temprecipe = os.path.join(self.tempdir, 'recipe')
[all …]
H A Dgitarchivetests.py34 tempdir = tempfile.mkdtemp(prefix='fake_results.')
35 repo = ga.init_git_repo(tempdir, False, False, logger)
38 with open(os.path.join(tempdir, fake_data_file), "w") as fake_data:
46 return tempdir, repo
H A Dsstatetests.py219 tempdir = tempfile.mkdtemp(prefix='sstate_autorev')
221 self.track_for_cleanup(tempdir)
223 create_temp_layer(tempdir, 'selftestrecipetool')
224 self.add_command_to_tearDown('bitbake-layers remove-layer %s' % tempdir)
226 runCmd('bitbake-layers add-layer %s' % tempdir)
232 result = runCmd('git clone %s noname' % url, cwd=tempdir)
233 srcdir = os.path.join(tempdir, 'noname')
237 … recipefile = os.path.join(tempdir, "recipes-test", "dbus-wait-test", 'dbus-wait-test_git.bb')
H A Dpkgdata.py201 tempdir = tempfile.mkdtemp(prefix='pkgdataqa')
202 self.track_for_cleanup(tempdir)
203 pkglistfile = os.path.join(tempdir, 'pkglist')
/openbmc/openbmc/poky/meta/recipes-devtools/icecc-create-env/icecc-create-env/
H A Dicecc-create-env312 tempdir=`mktemp -d /tmp/iceccenvXXXXXX`
315 mkdir -p $tempdir/`dirname $path`
316 cp -pH $path $tempdir/$path
318 if test -f $tempdir/$path -a -x $tempdir/$path; then
319 strip -s $tempdir/$path 2>/dev/null
322 fix_rpath $tempdir/$path `dirname $path`
330 mkdir -p $tempdir/`dirname $link_name`
333 link_rel $target $link_name $tempdir
354 …archive_name=`for i in $target_files; do test -f $tempdir/$i && $md5sum $tempdir/$i; done | sed -e…
372 cd $tempdir
[all …]
/openbmc/linux/arch/um/os-Linux/
H A Dmem.c44 static char *tempdir = NULL; variable
123 if (tempdir == NULL) { in make_tempfile()
124 tempdir = choose_tempdir(); in make_tempfile()
125 if (tempdir == NULL) { in make_tempfile()
133 fd = open(tempdir, O_CLOEXEC | O_RDWR | O_EXCL | O_TMPFILE, 0700); in make_tempfile()
143 tempname = malloc(strlen(tempdir) + strlen(template) + 1); in make_tempfile()
147 strcpy(tempname, tempdir); in make_tempfile()
220 os_info("Checking PROT_EXEC mmap in %s...", tempdir); in check_tmpexec()
226 os_warn("%s must be not mounted noexec\n", tempdir); in check_tmpexec()
/openbmc/linux/scripts/
H A Dget_dvb_firmware54 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
72 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
91 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
109 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
127 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
160 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
177 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
194 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
206 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 0);
250 my $tmpdir = tempdir(DIR => "/tmp", CLEANUP => 1);
[all …]
H A Drust_is_available_test.py28 path = pathlib.Path(cls.tempdir.name)
76 cls.tempdir = tempfile.TemporaryDirectory()
78 cls.missing = pathlib.Path(cls.tempdir.name) / "missing"
80 cls.nonexecutable = pathlib.Path(cls.tempdir.name) / "nonexecutable"
/openbmc/openbmc/poky/scripts/lib/resulttool/
H A Dstore.py22 tempdir = tempfile.mkdtemp(prefix='testresults.')
40 dst = f.replace(args.source, tempdir + "/")
72 …subprocess.check_call(["find", tempdir, "-name", "testresults.json", "!", "-path", "./.git/*", "-d…
73 resultutils.save_resultsdata(results, tempdir, ptestlogs=True)
81 tagname = gitarchive.gitarchive(tempdir, args.git_dir, False, False,
89 shutil.copytree(tempdir, logdir)
98 subprocess.check_call(["rm", "-rf", tempdir])
/openbmc/linux/tools/perf/tests/
H A Dsdt.c83 char *tempdir = NULL, *myself = get_self_path(); in test__sdt_event() local
90 tempdir = realpath(__tempdir, NULL); in test__sdt_event()
91 if (tempdir == NULL) in test__sdt_event()
95 set_buildid_dir(tempdir); in test__sdt_event()
112 free(tempdir); in test__sdt_event()
H A Dattr.py271 def run_cmd(self, tempdir): argument
286 cmd = "PERF_TEST_ATTR=%s %s %s -o %s/perf.data %s" % (tempdir,
287 self.perf, self.command, tempdir, self.args)
363 tempdir = tempfile.mkdtemp();
367 self.run_cmd(tempdir);
371 for f in glob.glob(tempdir + '/event*'):
384 shutil.rmtree(tempdir)
/openbmc/openbmc/poky/meta/classes/
H A Ddevtool-source.bbclass31 tempdir = d.getVar('DEVTOOL_TEMPDIR')
33 if not tempdir:
37 workdir = os.path.join(tempdir, 'workdir')
50 d.setVar('STAMPS_DIR', os.path.join(tempdir, 'stamps'))
51 d.setVar('T', os.path.join(tempdir, 'temp'))
77 tempdir = d.getVar('DEVTOOL_TEMPDIR')
89 with open(os.path.join(tempdir, '.gitignore'), 'a+') as f:
113 with open(os.path.join(tempdir, 'initial_rev'), 'w') as f:
116 with open(os.path.join(tempdir, 'srcsubdir'), 'w') as f:
122 tempdir = d.getVar('DEVTOOL_TEMPDIR')
[all …]
/openbmc/openbmc/poky/bitbake/lib/layerindexlib/tests/
H A Dcommon.py24 self.tempdir = tempfile.mkdtemp()
30 print("Not cleaning up %s. Please remove manually." % self.tempdir)
32 bb.utils.prunedir(self.tempdir)
H A Drestapi.py33 … self.layerindex.store_layerindex('file://%s/file.json' % self.tempdir, self.layerindex.indexes[0])
35 …self.assertTrue(os.path.isfile('%s/file.json' % self.tempdir), msg="Temporary file was not created…
38 reload.load_layerindex('file://%s/file.json' % self.tempdir)
70 self.layerindex.store_layerindex('file://%s' % self.tempdir, self.layerindex.indexes[0])
73 reload.load_layerindex('file://%s' % self.tempdir)
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-webadmin/webmin/files/
H A Dsetup.sh105 …openssl req -newkey rsa:512 -x509 -nodes -out $tempdir/cert -keyout $tempdir/key -days 1825 >/dev/…
115 cat $tempdir/cert $tempdir/key >$kfile
117 rm -f $tempdir/cert $tempdir/key
/openbmc/openbmc/poky/meta/recipes-core/busybox/busybox/
H A D0001-testsuite-check-uudecode-before-using-it.patch21 @@ -339,7 +339,7 @@ cd .. || exit 1; rm -rf tar.tempdir 2>/d
24 mkdir tar.tempdir && cd tar.tempdir || exit 1
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dbuild.py229 tempdir = d.getVar('T')
241 runfile = os.path.join(tempdir, runfn)
249 runlink = os.path.join(tempdir, 'run.{0}'.format(task))
520 tempdir = d.getVar('T')
521 fifopath = os.path.join(tempdir, 'fifo.%s' % os.getpid())
613 tempdir = localdata.getVar('T')
614 if not tempdir:
632 bb.utils.mkdirhier(tempdir)
639 logorder = os.path.join(tempdir, 'log.task_order')
649 loglink = os.path.join(tempdir, 'log.{0}'.format(task))
[all …]
/openbmc/openbmc/poky/scripts/lib/devtool/
H A Dstandard.py164 tempdir = tempfile.mkdtemp(prefix='devtool')
167 …path, 'recipetool --color=%s create --devtool -o %s \'%s\' %s' % (color, tempdir, source, extracmd…
174 recipes = glob.glob(os.path.join(tempdir, '*.bb'))
209 for fn in os.listdir(tempdir):
210 shutil.move(os.path.join(tempdir, fn), recipedir)
219 shutil.rmtree(tempdir)
544 tempdir = tempfile.mkdtemp(prefix='devtooltmp-', dir=tempbasedir)
553 appendbackup = os.path.join(tempdir, os.path.basename(appendfile) + '.bak')
563 f.write('DEVTOOL_TEMPDIR = "%s"\n' % tempdir)
621 with open(os.path.join(tempdir, 'initial_rev'), 'r') as f:
[all …]
/openbmc/openbmc/meta-openembedded/meta-python/recipes-devtools/python/
H A Dpython3-pytest-tempdir_2019.10.12.bb2 HOMEPAGE = "https://github.com/saltstack/pytest-tempdir"
/openbmc/openbmc/poky/bitbake/lib/bblayers/
H A Daction.py47 tempdir = tempfile.mkdtemp()
48 backup = tempdir + "/bblayers.conf.bak"
67 shutil.rmtree(tempdir)

12