| |
@@ -87,6 +87,10 @@
|
| |
arches = {arch.name for arch in build.arches}
|
| |
assert arches == set(get_build_arches.return_value)
|
| |
|
| |
+ # Ensure the function is idempotent
|
| |
+ record_module_build_arches(build.mmd(), build)
|
| |
+ assert len(build.arches) == len(get_build_arches.return_value)
|
| |
+
|
| |
@pytest.mark.parametrize(
|
| |
"scmurl",
|
| |
[
|
| |
This function could get called multiple times if the init handler
runs more than once. This can happen if the build failed in the
init handler due to external infrastructure being down and the
user resumes their build.