Skip to content

Commit 8cff793

Browse files
committed
Turn off -e in the place that needs it
Signed-off-by: Michał Szołucha <[email protected]>
1 parent e317daf commit 8cff793

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docker/build_helper.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ export PYTHON_VERSIONS=${PYTHON_VERSIONS}
7979

8080
# PYTHON_GIL can be set to 0 only if Python is compiled with --disable-gil.
8181
# Check if Python is compiled with --disable-gil.
82+
set +e
8283
python -c 'import sysconfig ; exit(sysconfig.get_config_var("Py_GIL_DISABLED"))'
8384
# Set PYTHON_GIL accordingly.
8485
if [ $? -ne 0 ]; then
8586
export PYTHON_GIL=0
8687
fi
88+
set -e
8789

8890
cmake ../ -DCMAKE_INSTALL_PREFIX=. \
8991
-DARCH=${ARCH} \

qa/TL0_free-threading/test_body.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
# PYTHON_GIL can be set to 0 only if Python is compiled with --disable-gil.
44
# Check if Python is compiled with --disable-gil.
5+
set +e
56
python3 -c 'import sysconfig ; exit(sysconfig.get_config_var("Py_GIL_DISABLED"))'
67
# Set PYTHON_GIL accordingly.
78
if [ $? -ne 0 ]; then
89
export PYTHON_GIL=0
910
fi
11+
set -e
1012

1113
test_py_with_framework() {
1214
${python_new_invoke_test} -A '!slow' -s free-threading
@@ -18,4 +20,4 @@ test_no_fw() {
1820

1921
run_all() {
2022
test_no_fw
21-
}
23+
}

0 commit comments

Comments
 (0)