[tracker-miners/sam/functional-tests-shared: 1/2] functional-tests: Clean up imports and fix invalid variable access in system.py
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/functional-tests-shared: 1/2] functional-tests: Clean up imports and fix invalid variable access in system.py
- Date: Wed, 7 Aug 2019 18:56:57 +0000 (UTC)
commit df319b1f044c13fbb01a1eb79d399a2481159cbd
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]