* [PATCH v2 0/1] oe-selftest: devtool: remove use of git -C
@ 2017-01-20 3:21 Paul Eggleton
2017-01-20 3:21 ` [PATCH v2 1/1] " Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2017-01-20 3:21 UTC (permalink / raw)
To: openembedded-core
The following changes since commit fc97963bc61bf16112859fe1d7e460a13d34baca:
oeqa/selftest/devtool: rewrite modify testcase (2017-01-19 22:45:46 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/devtool-git-fix1
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=paule/devtool-git-fix1
Paul Eggleton (1):
oe-selftest: devtool: remove use of git -C
meta/lib/oeqa/selftest/devtool.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.5.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v2 1/1] oe-selftest: devtool: remove use of git -C
2017-01-20 3:21 [PATCH v2 0/1] oe-selftest: devtool: remove use of git -C Paul Eggleton
@ 2017-01-20 3:21 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2017-01-20 3:21 UTC (permalink / raw)
To: openembedded-core
The -C option isn't available in versions of git older than 1.8.5,
and officially we only require git 1.8.3.1 or newer (and the latter is
the version you'll find on CentOS 7, so the test fails there). In any
case we can simply specify the working directory to runCmd() so just
do that instead.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/lib/oeqa/selftest/devtool.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py
index 887c1e6..dc3435f 100644
--- a/meta/lib/oeqa/selftest/devtool.py
+++ b/meta/lib/oeqa/selftest/devtool.py
@@ -461,7 +461,7 @@ class DevtoolTests(DevtoolBase):
bitbake('mdadm -c package')
check_line(manfile, 'antique pin sardine', 'man file not modified. man searched file path: %s' % manfile)
- result = runCmd('git -C %s checkout -- %s' % (tempdir, modfile))
+ result = runCmd('git checkout -- %s' % modfile, cwd=tempdir)
check_line(modfile, 'Linux Software RAID', 'man .in file not restored (git failed)')
bitbake('mdadm -c package')
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-20 3:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-20 3:21 [PATCH v2 0/1] oe-selftest: devtool: remove use of git -C Paul Eggleton
2017-01-20 3:21 ` [PATCH v2 1/1] " Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox