From 9df14924d4db6d941b1aa2b156614fc8ac70e0d3 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Fri, 10 Aug 2018 21:43:11 +0800 Subject: 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. --- tests/datetime/test-datetime.py | 4 ++-- tests/network/test-network-panel.py | 2 +- tests/shared/gtest.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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 -- cgit v1.2.1