[tracker-miners/sam/functional-tests-shared: 8/15] functional-tests: Clean up imports and fix invalid variable access in system.py



commit 3db98c8b18a7d6e4fe23974ea457cf2c5dd3afa3
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Aug 7 20:56:28 2019 +0200

    functional-tests: Clean up imports and fix invalid variable access in system.py

 tests/functional-tests/common/utils/system.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/system.py b/tests/functional-tests/common/utils/system.py
index b9f36b119..e6c190b2e 100644
--- a/tests/functional-tests/common/utils/system.py
+++ b/tests/functional-tests/common/utils/system.py
@@ -1,16 +1,11 @@
 #!/usr/bin/env python3
 import logging
 import os
-import subprocess
 import shutil
 import tempfile
 
-from gi.repository import GObject
 from gi.repository import GLib
-import time
 
-from common.utils import configuration as cfg
-from common.utils import options
 from common.utils.dconf import DConfClient
 from common.utils import helpers
 
@@ -102,7 +97,7 @@ class TrackerSystemAbstraction (object):
             os.environ["TRACKER_DB_ONTOLOGIES_DIR"] = ontodir
         try:
             self.store.start()
-        except GLib.Error:
+        except GLib.Error as e:
             raise UnableToBootException("Unable to boot the store \n(" + str(e) + ")")
 
     def tracker_store_prepare_journal_replay(self):


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