]> xenbits.xensource.com Git - xen.git/commitdiff
automation: Avoid changing source files for randconfig tests
authorAnthony PERARD <anthony.perard@vates.tech>
Wed, 26 Mar 2025 14:28:25 +0000 (14:28 +0000)
committerAnthony PERARD <anthony.perard@vates.tech>
Fri, 25 Apr 2025 09:26:29 +0000 (11:26 +0200)
We should avoid changing files from the source tree if we don't intend
to commit the result.

We don't really need to check if $EXTRA_FIXED_RANDCONFIG is empty so
add it to the temporary file in all cases.

Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
automation/scripts/build

index a348c781d1f23035087220dd6f697411f1817c31..cdb8cd7c722b334ba1edbc9aa89600bb9d3773b6 100755 (executable)
@@ -12,12 +12,12 @@ $cc --version
 # random config or default config
 if [[ "${RANDCONFIG}" == "y" ]]; then
 
+    cp -f xen/tools/kconfig/allrandom.config xen/allrandom.config.tmp
+
     # Append job-specific fixed configuration
-    if [[ -n "${EXTRA_FIXED_RANDCONFIG}" ]]; then
-        echo "${EXTRA_FIXED_RANDCONFIG}" >> xen/tools/kconfig/allrandom.config
-    fi
+    echo "${EXTRA_FIXED_RANDCONFIG}" >> xen/allrandom.config.tmp
 
-    make -j$(nproc) -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig
+    make -j$(nproc) -C xen KCONFIG_ALLCONFIG=allrandom.config.tmp randconfig
 
     # RANDCONFIG implies HYPERVISOR_ONLY
     HYPERVISOR_ONLY="y"