on xenial help sign in
Fixed the failure of notification autopilot-test test_sd_incoming_call.
551c708Mirco Müller
tests/autopilot/unity8/shell/tests/test_notifications.py+1−3
@@ -58,9 +58,7 @@ class NotificationsBase(UnityTestCase):
58 if os.path.abspath(__file__).startswith('/usr/'):
58 if os.path.abspath(__file__).startswith('/usr/'):
59 return '/usr/share/unity8/graphics/' + icon_name
59 return '/usr/share/unity8/graphics/' + icon_name
60 else:
60 else:
61− return os.path.abspath(
62− os.getcwd() + "../../qml/graphics/" + icon_name
61+ return os.path.dirname(__file__) + "/../../../../../qml/graphics/" + icon_name
63− )
64
62
65 def _get_notifications_list(self):
63 def _get_notifications_list(self):
66 main_view = self.main_window.get_qml_view()
64 main_view = self.main_window.get_qml_view()