diff --git a/MODULE.bazel b/MODULE.bazel index 14d5ce34b9..6a6a64016a 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -25,10 +25,10 @@ module( # see https://registry.bazel.build/ # Bazel dependencies -bazel_dep(name = "bazel_skylib", version = "1.8.1") +bazel_dep(name = "bazel_skylib", version = "1.8.2") bazel_dep(name = "contrib_rules_jvm", version = "0.28.0") bazel_dep(name = "platforms", version = "1.0.0") -bazel_dep(name = "rules_cc", version = "0.2.0") +bazel_dep(name = "rules_cc", version = "0.2.9") bazel_dep(name = "rules_go", version = "0.53.0") bazel_dep(name = "rules_java", version = "8.14.0") bazel_dep(name = "rules_jvm_external", version = "6.7") @@ -89,7 +89,7 @@ SUPPORTED_PYTHON_VERSIONS = [ "3.13", ] -DEFAULT_PYTHON = "3.11" +DEFAULT_PYTHON = "3.12" python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True) diff --git a/bazel/run_binary_test.bzl b/bazel/run_binary_test.bzl index ea2cd11f69..000b4dc7c2 100644 --- a/bazel/run_binary_test.bzl +++ b/bazel/run_binary_test.bzl @@ -47,14 +47,15 @@ def parse_label(label): def get_check_contains_code(line): return """ -if ! grep -qF "{line}" "${{LOGFILE}}"; then +if ! grep --quiet --fixed-strings "{line}" "${{LOGFILE}}"; then + echo "---------------------------------------------------------------" cat "${{LOGFILE}}" echo "---------------------------------------------------------------" echo "FAILURE: string '{line}' was not found in the output." echo "---------------------------------------------------------------" exit 1 fi - """.format(line = line) +""".format(line = line) def run_binary_test( name, diff --git a/bazel/test_runner_template.sh b/bazel/test_runner_template.sh index a6c038a902..6a59d3db38 100644 --- a/bazel/test_runner_template.sh +++ b/bazel/test_runner_template.sh @@ -15,5 +15,5 @@ set -e # Fail on error declare -r LOGFILE="${TEST_TMPDIR}/log.txt" -{{binary_path}} "$@" > "${LOGFILE}" +{{binary_path}} "$@" > "${LOGFILE}" 2>&1 {{post_script}}