Skip to contentSkip to conversation

ts-xen-build: Do not set QEMU_REMOTE unless $r{tree_qemu} is set

PATCH In review Ian Campbell 2 participants 2 messages Sep 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-xen-build: Do not set QEMU_REMOTE unless $r{tree_qemu} is set

4.4 and earlier do not check if QEMU_REMOTE is empty before using it.

Quoted 1 line

From 4.5 onwards if QEMU_REMOTE is empty then default is used.

This should fix the build-*-prev job for 4.5 and earlier. In this job we deliberately don't specify tree_qemu since we want whatever that branch gives us.

---
 ts-xen-build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
ts-xen-build +3 -1
index cebfaf3..b02e737 100755
@@ -52,12 +52,14 @@ sub checkout () {
 	echo >>.config debug=$debug_build
 	echo >>.config GIT_HTTP=y
 	echo >>.config LIBLEAFDIR_x86_64=lib
-	echo >>.config QEMU_REMOTE='$r{tree_qemu}'
 	echo >>.config KERNELS=''
 END
                (nonempty($r{enable_xsm}) ? <<END : '').
 	echo >>.config XSM_ENABLE='${build_xsm}'
 END
+               (nonempty($r{tree_qemu}) ? <<END : '').
+	echo >>.config QEMU_REMOTE='$r{tree_qemu}'
+END
                (nonempty($r{revision_qemu}) ? <<END : '').
 	echo >>.config QEMU_TAG='$r{revision_qemu}'
 END
Signature · 1 line
2.5.1
Acked-by on v1 1/1
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] ts-xen-build: Do not set QEMU_REMOTE unless $r{tree_qemu} is set"):

Quoted 2 lines

4.4 and earlier do not check if QEMU_REMOTE is empty before using it. From 4.5 onwards if QEMU_REMOTE is empty then default is used.

How annoying.

Quoted 3 lines

This should fix the build-*-prev job for 4.5 and earlier. In this job we deliberately don't specify tree_qemu since we want whatever that branch gives us.