diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2023-09-14 13:36:45 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-14 21:57:16 +0100 |
commit | de863bc1fa44b5ed7ad2b00abfcdd45db1f51fe2 (patch) | |
tree | 5d961d23f48fb6db2a9b9c761c9850575cd7bdc0 | |
parent | bd1fc66e4c342590f329723fa77f4577ae3c49f7 (diff) | |
download | poky-de863bc1fa44b5ed7ad2b00abfcdd45db1f51fe2.tar.gz |
oeqa/selftest/context.py: check git command return values
Don't ignore return values from the git command lines. If something goes
wrong, fail the test right away.
(From OE-Core rev: dfc178a70d6fa60e89d4716f05d68e2c72c6ecd3)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/selftest/context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py index bd03e765b0..7dab5614a9 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py | |||
@@ -104,7 +104,7 @@ class OESelftestTestContext(OETestContext): | |||
104 | oe.path.copytree(builddir + "/cache", newbuilddir + "/cache") | 104 | oe.path.copytree(builddir + "/cache", newbuilddir + "/cache") |
105 | oe.path.copytree(selftestdir, newselftestdir) | 105 | oe.path.copytree(selftestdir, newselftestdir) |
106 | 106 | ||
107 | subprocess.check_output("git init; git add *; git commit -a -m 'initial'", cwd=newselftestdir, shell=True) | 107 | subprocess.check_output("git init && git add * && git commit -a -m 'initial'", cwd=newselftestdir, shell=True) |
108 | 108 | ||
109 | # Tried to used bitbake-layers add/remove but it requires recipe parsing and hence is too slow | 109 | # Tried to used bitbake-layers add/remove but it requires recipe parsing and hence is too slow |
110 | subprocess.check_output("sed %s/conf/bblayers.conf -i -e 's#%s#%s#g'" % (newbuilddir, selftestdir, newselftestdir), cwd=newbuilddir, shell=True) | 110 | subprocess.check_output("sed %s/conf/bblayers.conf -i -e 's#%s#%s#g'" % (newbuilddir, selftestdir, newselftestdir), cwd=newbuilddir, shell=True) |