[kvm-unit-tests PATCH v1] tap13: make testcase names unique

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Previously, we were using the full output of each test for the name, e.g.

  ok 104 - intercept: stpx: Program interrupt: expected(4) == received(4)

But that's not a stable testcase name: The "received(4)" might change in case of
an error. Therefore, we truncate everything after the "expected()".
Helps in CI environments when comparing with previous output.

Signed-off-by: Stefan Raspl <raspl@xxxxxxxxxxxxx>
---
 run_tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/run_tests.sh b/run_tests.sh
index 01e36dc..baf8c70 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -83,7 +83,7 @@ else
     process_test_output() {
         CR=$'\r'
         while read -r line; do
-            line="${line%$CR}"
+            line="${line% ==*}"
             case "${line:0:4}" in
                 PASS)
                     echo "ok TEST_NUMBER - ${line#??????}" >&3
-- 
2.16.4




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux