diff mbox series

kvm-unit-test: fix script output abnormal

Message ID 1537292600-29202-1-git-send-email-peng.hao2@zte.com.cn (mailing list archive)
State New, archived
Headers show
Series kvm-unit-test: fix script output abnormal | expand

Commit Message

Peng Hao Sept. 18, 2018, 5:43 p.m. UTC
./run_tests.sh
)ASS apic-split (50 tests;
)ASS ioapic-split (19 tests;
)ASS apic (50 tests;
)ASS ioapic (19 tests;
)ASS smptest (1 tests;
)ASS smptest3 (1 tests;

modify sed statement in scripts/runtime.bash, we can see normal
output.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
---
 scripts/runtime.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/runtime.bash b/scripts/runtime.bash
index a31ae91..37f8ebc 100644
--- a/scripts/runtime.bash
+++ b/scripts/runtime.bash
@@ -8,7 +8,7 @@  FAIL() { echo -ne "\e[31mFAIL\e[0m"; }
 
 extract_summary()
 {
-    tail -3 | grep '^SUMMARY: ' | sed 's/^SUMMARY: /(/;s/$/)/'
+    tail -3 | grep '^SUMMARY: ' | sed 's/^SUMMARY: /(/;s/\r$/)/'
 }
 
 # We assume that QEMU is going to work if it tried to load the kernel