Skip to content

Commit 6915a4a

Browse files
authored
Update integration tests to find python smarter (#1160)
1 parent e47a26e commit 6915a4a

File tree

15 files changed

+75
-30
lines changed

15 files changed

+75
-30
lines changed

admob/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

analytics/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

app/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

app_check/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

auth/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

database/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

dynamic_links/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

firestore/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

firestore/integration_test_internal/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

functions/integration_test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616

1717
cmake_minimum_required(VERSION 2.8)
1818

19-
set(FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20-
"The Python interpreter to use, such as one from a venv")
19+
find_program(FIREBASE_PYTHON_EXECUTABLE
20+
NAMES python3 python
21+
DOC "The Python interpreter to use, such as one from a venv"
22+
REQUIRED
23+
)
2124

2225
# User settings for Firebase integration tests.
2326
# Path to Firebase SDK.

0 commit comments

Comments
 (0)