From 504360ba9a7b6eaa671fa14bdeac0794f223dd76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 24 Jun 2016 00:17:16 +0200 Subject: [PATCH] tests: fix clearing 'updates pending' flag test --- tests/dom0_update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/dom0_update.py b/tests/dom0_update.py index e40365c8..8bfd0045 100644 --- a/tests/dom0_update.py +++ b/tests/dom0_update.py @@ -266,7 +266,8 @@ Test package open(self.update_flag_path, 'a').close() # remove also repodata to test #1685 - shutil.rmtree('/var/lib/qubes/updates/repodata') + if os.path.exists('/var/lib/qubes/updates/repodata'): + shutil.rmtree('/var/lib/qubes/updates/repodata') logpath = os.path.join(self.tmpdir, 'dom0-update-output.txt') try: subprocess.check_call(['sudo', 'qubes-dom0-update', '-y',