[gnome-boxes] tests: Supress stderr of some of the commands



commit 3863c24b62e1bf0353df76e84e4202a849d8c18a
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Feb 2 15:09:08 2015 +0000

    tests: Supress stderr of some of the commands
    
    They emit warnings if you try to move the backup files if they don't
    exist, which will be the case if you don't have any boxes when running
    tests.

 tests/environment.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/environment.py b/tests/environment.py
index 3b41870..c4d3ab5 100644
--- a/tests/environment.py
+++ b/tests/environment.py
@@ -238,10 +238,10 @@ def after_all(context):
 
     print "** Restoring Boxes backup"
     # move images back
-    call("mv ~/boxes_backup/images/* ~/.local/share/gnome-boxes/images/", shell=True)
+    call("mv ~/boxes_backup/images/* ~/.local/share/gnome-boxes/images/", shell=True, stderr=f)
 
     # move save states back
-    call("mv ~/boxes_backup/save/* ~/.config/libvirt/qemu/save/", shell=True, stdout=f)
+    call("mv ~/boxes_backup/save/* ~/.config/libvirt/qemu/save/", shell=True, stdout=f, stderr=f)
 
     # import machines
     call("for i in $(ls ~/boxes_backup |grep xml); do virsh define ~/boxes_backup/$i; done", shell=True, 
stdout=f)


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