diff options
| author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2023-09-14 13:36:45 +0300 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-10-18 05:25:19 -1000 |
| commit | c5d0496e16d855392b09867c4baac04707602595 (patch) | |
| tree | 39d1c78313aca201f6e1e0cf7911b0db3c0f8121 /meta/lib | |
| parent | 639474140ab7b64c36ebd1f7e5efbaa05eb403ff (diff) | |
| download | poky-c5d0496e16d855392b09867c4baac04707602595.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: 776053f4af19e9c2de7ce725e6ec94312028fa7f)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dfc178a70d6fa60e89d4716f05d68e2c72c6ecd3)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib')
| -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 c98763735f..39325f4b72 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py | |||
| @@ -97,7 +97,7 @@ class OESelftestTestContext(OETestContext): | |||
| 97 | oe.path.copytree(builddir + "/cache", newbuilddir + "/cache") | 97 | oe.path.copytree(builddir + "/cache", newbuilddir + "/cache") |
| 98 | oe.path.copytree(selftestdir, newselftestdir) | 98 | oe.path.copytree(selftestdir, newselftestdir) |
| 99 | 99 | ||
| 100 | subprocess.check_output("git init; git add *; git commit -a -m 'initial'", cwd=newselftestdir, shell=True) | 100 | subprocess.check_output("git init && git add * && git commit -a -m 'initial'", cwd=newselftestdir, shell=True) |
| 101 | 101 | ||
| 102 | # Tried to used bitbake-layers add/remove but it requires recipe parsing and hence is too slow | 102 | # Tried to used bitbake-layers add/remove but it requires recipe parsing and hence is too slow |
| 103 | subprocess.check_output("sed %s/conf/bblayers.conf -i -e 's#%s#%s#g'" % (newbuilddir, selftestdir, newselftestdir), cwd=newbuilddir, shell=True) | 103 | subprocess.check_output("sed %s/conf/bblayers.conf -i -e 's#%s#%s#g'" % (newbuilddir, selftestdir, newselftestdir), cwd=newbuilddir, shell=True) |
