mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
selftest/bblayers: adjust the revision for the layer setup test
Using a tag is not actually robust enough, e.g. poky-contrib checkouts do not come with any tags. So let's use a revision matching yocto-4.0, that ought to be present. (From OE-Core rev: 1246aa8e4c9e6fce2f7700cd8e8ad9566a21d6e3) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fe7eb16537
commit
9facffec78
@@ -149,12 +149,12 @@ class BitbakeLayers(OESelftestTestCase):
|
|||||||
self.validate_layersjson(jsonfile)
|
self.validate_layersjson(jsonfile)
|
||||||
|
|
||||||
# The revision-under-test may not necessarily be available on the remote server,
|
# The revision-under-test may not necessarily be available on the remote server,
|
||||||
# so replace it with a stable release tag.
|
# so replace it with a revision that has a yocto-4.0 tag.
|
||||||
import json
|
import json
|
||||||
with open(jsonfile) as f:
|
with open(jsonfile) as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
for s in data['sources']:
|
for s in data['sources']:
|
||||||
data['sources'][s]['git-remote']['rev'] = 'yocto-4.0'
|
data['sources'][s]['git-remote']['rev'] = '00cfdde791a0176c134f31e5a09eff725e75b905'
|
||||||
with open(jsonfile, 'w') as f:
|
with open(jsonfile, 'w') as f:
|
||||||
json.dump(data, f)
|
json.dump(data, f)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user