From: Roger Pau Monné Date: Mon, 11 Apr 2022 10:33:02 +0000 (+0200) Subject: tools/xl: fix vif and vcpupin parse tests X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~740 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f44201124e8713f6eff80f349351b5740001c6fc;p=xen.git tools/xl: fix vif and vcpupin parse tests Current vif and vcpupin parse tests are out of sync. First of all, xl returns 1 on failure, so replace the expected error code. Secondly fix the expected output from some vif tests, as xl will no longer print the unpopulated fields. Signed-off-by: Roger Pau Monné Acked-by: Anthony PERARD --- diff --git a/tools/xl/check-xl-vcpupin-parse b/tools/xl/check-xl-vcpupin-parse index 21f8421ad0..633616a597 100755 --- a/tools/xl/check-xl-vcpupin-parse +++ b/tools/xl/check-xl-vcpupin-parse @@ -158,7 +158,7 @@ END RANDOM=$seed echo "# Testing a wrong configuration" >> $outfile -write foo 255 "" +write foo 1 "" echo "# Testing the 'all' syntax" >> $outfile write "all" 0 "cpumap: all" diff --git a/tools/xl/check-xl-vif-parse b/tools/xl/check-xl-vif-parse index 02c6dbaeb6..04bd9463d8 100755 --- a/tools/xl/check-xl-vif-parse +++ b/tools/xl/check-xl-vif-parse @@ -40,7 +40,7 @@ complete () { fi } -e=255 +e=1 #---------- test data ---------- @@ -62,16 +62,6 @@ one $e rate=10ZB/m # test b/s and B/s rate units expected <