From f44201124e8713f6eff80f349351b5740001c6fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roger=20Pau=20Monn=C3=A9?= Date: Mon, 11 Apr 2022 12:33:02 +0200 Subject: [PATCH] tools/xl: fix vif and vcpupin parse tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tools/xl/check-xl-vcpupin-parse | 2 +- tools/xl/check-xl-vif-parse | 52 +-------------------------------- 2 files changed, 2 insertions(+), 52 deletions(-) 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 <