| |
@@ -179,14 +179,14 @@
|
| |
"buildrequires, xmd_buildrequires, expected", (
|
| |
# BR all platform streams -> build for all platform streams.
|
| |
({"platform": []}, {}, [
|
| |
- [["platform:el8.2.0:0:c0:x86_64"],
|
| |
+ [["platform:el8.2.0.z:0:c0:x86_64"],
|
| |
["platform:el8.1.0:0:c0:x86_64"],
|
| |
["platform:el8.0.0:0:c0:x86_64"],
|
| |
["platform:el7.6.0:0:c0:x86_64"]],
|
| |
]),
|
| |
# BR "el8" platform stream -> build for all el8 platform streams.
|
| |
({"platform": ["el8"]}, {}, [
|
| |
- [["platform:el8.2.0:0:c0:x86_64"],
|
| |
+ [["platform:el8.2.0.z:0:c0:x86_64"],
|
| |
["platform:el8.1.0:0:c0:x86_64"],
|
| |
["platform:el8.0.0:0:c0:x86_64"]],
|
| |
]),
|
| |
@@ -202,16 +202,16 @@
|
| |
]),
|
| |
# BR platform:el8.2.0 and gtk:3, this time gtk:3 build against el8.2.0 exists
|
| |
# -> use both platform and gtk from el8.2.0 and build once.
|
| |
- ({"platform": ["el8"], "gtk": ["3"]}, ["platform:el8.2.0"], [
|
| |
- [["platform:el8.2.0:0:c0:x86_64", "gtk:3:1:c8:x86_64", ]],
|
| |
+ ({"platform": ["el8"], "gtk": ["3"]}, ["platform:el8.2.0.z"], [
|
| |
+ [["platform:el8.2.0.z:0:c0:x86_64", "gtk:3:1:c8:x86_64", ]],
|
| |
]),
|
| |
# BR platform:el8.2.0 and mess:1 which is built against platform:el8.1.0 and
|
| |
# requires gtk:3 which is built against platform:el8.2.0 and platform:el8.0.0
|
| |
# -> Use platform:el8.2.0 and
|
| |
# -> cherry-pick mess:1 from el8.1.0 and
|
| |
# -> use gtk:3:1 from el8.2.0.
|
| |
- ({"platform": ["el8"], "mess": ["1"]}, ["platform:el8.2.0"], [
|
| |
- [["platform:el8.2.0:0:c0:x86_64", "mess:1:0:c0:x86_64", "gtk:3:1:c8:x86_64", ]],
|
| |
+ ({"platform": ["el8"], "mess": ["1"]}, ["platform:el8.2.0.z"], [
|
| |
+ [["platform:el8.2.0.z:0:c0:x86_64", "mess:1:0:c0:x86_64", "gtk:3:1:c8:x86_64", ]],
|
| |
]),
|
| |
# BR platform:el8.1.0 and mess:1 which is built against platform:el8.1.0 and
|
| |
# requires gtk:3 which is built against platform:el8.2.0 and platform:el8.0.0
|
| |
@@ -237,10 +237,10 @@
|
| |
# (nsvc, buildrequires, expanded_buildrequires, virtual_streams)
|
| |
("platform:el8.0.0:0:c0", {}, {}, ["el8"]),
|
| |
("platform:el8.1.0:0:c0", {}, {}, ["el8"]),
|
| |
- ("platform:el8.2.0:0:c0", {}, {}, ["el8"]),
|
| |
+ ("platform:el8.2.0.z:0:c0", {}, {}, ["el8"]),
|
| |
("platform:el7.6.0:0:c0", {}, {}, ["el7"]),
|
| |
("gtk:3:0:c8", {"platform": ["el8"]}, {"platform:el8.0.0"}, None),
|
| |
- ("gtk:3:1:c8", {"platform": ["el8"]}, {"platform:el8.2.0"}, None),
|
| |
+ ("gtk:3:1:c8", {"platform": ["el8"]}, {"platform:el8.2.0.z"}, None),
|
| |
("mess:1:0:c0", [{"gtk": ["3"], "platform": ["el8"]}], {"platform:el8.1.0"}, None),
|
| |
)
|
| |
for n, req, xmd_br, virtual_streams in modules:
|
| |
A base module's stream (the platform for RHEL) could have Z-stream suffix, e.g.
el8.0.0.z, this patch handles this Z-stream suffix and other potential streams
by returning the stream version as a float with configured suffix value. For
example, el8.1.0.z would be parsed as 080100.1. Note that, the 0.1 is totally
configured in config and it actually could be any value according to concrete
cases in practice.
Config STREAM_SUFFIXES is enabled in TestConfiguration so that tests depending
on the return value from ModuleBuild.get_stream_version are covered.
Part fixture of test TestMMDResolver.test_solve_virtual_streams is updated by
adding Z-stream suffix to platform:el8.2.0 in order to ensure this patch does
not break the MMD resolver.
Addresses FACTORY-4307
Signed-off-by: Chenxiong Qi cqi@redhat.com