summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw@src.gnome.org>2018-08-10 21:43:11 +0800
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-08-13 01:18:16 +0000
commit9df14924d4db6d941b1aa2b156614fc8ac70e0d3 (patch)
tree01627569335ce338b98d0827c0189cc21a4c584b /tests
parent510dc167779c0a02d4b6b06da56875ae0ae26efa (diff)
downloadgnome-control-center-9df14924d4db6d941b1aa2b156614fc8ac70e0d3.tar.gz
tests: Don't hard-code the path to python
Python isn't always installed in /usr/bin. If we hard-code the path, these tests will fail on *BSD because they install python in different prefixes such as /usr/local and /usr/pkg.
Diffstat (limited to 'tests')
-rw-r--r--tests/datetime/test-datetime.py4
-rw-r--r--tests/network/test-network-panel.py2
-rw-r--r--tests/shared/gtest.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/datetime/test-datetime.py b/tests/datetime/test-datetime.py
index c478374a8..cc69caeb8 100644
--- a/tests/datetime/test-datetime.py
+++ b/tests/datetime/test-datetime.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
# Copyright © 2018 Red Hat, Inc
# 2018 Endless Mobile, Inc
#
@@ -51,4 +51,4 @@ class TimezoneGfxTestCase(X11SessionTestCase, GTest):
if __name__ == '__main__':
_test = unittest.TextTestRunner(stream=sys.stdout, verbosity=2)
- unittest.main(testRunner=_test) \ No newline at end of file
+ unittest.main(testRunner=_test)
diff --git a/tests/network/test-network-panel.py b/tests/network/test-network-panel.py
index f91958a7a..1098bab2c 100644
--- a/tests/network/test-network-panel.py
+++ b/tests/network/test-network-panel.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
# Copyright © 2018 Red Hat, Inc
#
# This program is free software; you can redistribute it and/or modify
diff --git a/tests/shared/gtest.py b/tests/shared/gtest.py
index bb7130daf..259da775e 100644
--- a/tests/shared/gtest.py
+++ b/tests/shared/gtest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
# Copyright © 2018 Red Hat, Inc
#
# This program is free software; you can redistribute it and/or modify