[kvm-unit-tests PATCH] arch-run: Fix run_qemu return correct error code

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

 



From: rminmin <renmm6@xxxxxxxxxxxxxx>

run_qemu should return 0 if logs doesn't
contain "warning" keyword.

Fixes: b2a2aa5d ("arch-run: reduce return code ambiguity")
Signed-off-by: rminmin <renmm6@xxxxxxxxxxxxxx>
---
 scripts/arch-run.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash
index 51e4b97..9878d32 100644
--- a/scripts/arch-run.bash
+++ b/scripts/arch-run.bash
@@ -61,7 +61,7 @@ run_qemu ()
                # Even when ret==1 (unittest success) if we also got stderr
                # logs, then we assume a QEMU failure. Otherwise we translate
                # status of 1 to 0 (SUCCESS)
-               if [ -z "$(echo "$errors" | grep -vi warning)" ]; then
+               if [ -z "$(echo "$errors" | grep -i warning)" ]; then
                        ret=0
                fi
        fi
--
2.33.0

Èç¹ûÄú´íÎó½ÓÊÕÁ˸ÃÓʼþ£¬Çëͨ¹ýµç×ÓÓʼþÁ¢¼´Í¨ÖªÎÒÃÇ¡£Çë»Ø¸´Óʼþµ½ hqs-spmc@xxxxxxxxxxxxxx£¬¼´¿ÉÒÔÍ˶©´ËÓʼþ¡£ÎÒÃǽ«Á¢¼´½«ÄúµÄÐÅÏ¢´ÓÎÒÃǵķ¢ËÍĿ¼ÖÐɾ³ý¡£ If you have received this email in error please notify us immediately by e-mail. Please reply to hqs-spmc@xxxxxxxxxxxxxx ,you can unsubscribe from this mail. We will immediately remove your information from send catalogue of our.



[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