on xenial help sign in
Use more robust way to grab graphics-assets in the notification autopilot-tests.
commitecd25db05655a8fc8b0d7c7938d724a536091f27 authorMirco Müller <mirco.mueller@ubuntu.com> dateTue 28 Jan 2014, 17:20 (13 years ago) parent7f1d8cf
1 file changed+1−3
tests/autopilot/unity8/shell/tests/test_notifications.py+1−3
tests/autopilot/unity8/shell/tests/test_notifications.py+1−3
@@ -58,9 +58,7 @@ class NotificationsBase(UnityTestCase):
5858 if os.path.abspath(__file__).startswith('/usr/'):
5959 return '/usr/share/unity8/graphics/' + icon_name
6060 else:
61− return os.path.abspath(
62− os.getcwd() + "../../qml/graphics/" + icon_name
63− )
61+ return os.path.dirname(__file__) + "/../../../../../qml/graphics/" + icon_name
6462
6563 def _get_notifications_list(self):
6664 main_view = self.main_window.get_qml_view()