[gnome-boxes] tests: Change directory outside & after loop



commit 35151097ba147dd2f0916f229ee238f0dc9ba760
Author: Vladimir Benes <benesv email cz>
Date:   Wed Feb 18 20:34:49 2015 +0100

    tests: Change directory outside & after loop
    
    Go back to original directory after all machine snaphsots are restored.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744682

 tests/environment.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tests/environment.py b/tests/environment.py
index 550c44f..0051d41 100644
--- a/tests/environment.py
+++ b/tests/environment.py
@@ -110,8 +110,7 @@ def do_restore():
                   do virsh snapshot-create $i ~/boxes_backup/snapshot/$s; \
               done; \
               virsh save $i ~/.config/libvirt/qemu/save/$i.save ; \
-              cd -; \
-              done;", shell=True, stdout=f, stderr=f)
+              done; cd -;", shell=True, stdout=f, stderr=f)
 
     call("mv ~/boxes_backup/sources/* ~/.cache/gnome-boxes/sources/", shell=True, stdout=f)
 


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