From 75b6f821f76c0ee879bf0dc172dac1f2a9dd5c5d Mon Sep 17 00:00:00 2001 From: Lite Ye Date: Thu, 17 Feb 2022 04:01:38 -0500 Subject: [PATCH] Use `/usr/bin/env bash` in shebang for all scripts under tests (#10277) * Use /usr/bin/env bash in shebang This makes scripts executable on system without /bin/bash (NixOS) * Use `set -e` in script instead of `bash -e` in shebang --- tests/lint/check_asf_header.sh | 3 ++- tests/lint/clang_format.sh | 3 ++- tests/lint/cppdocs.sh | 2 +- tests/lint/cpplint.sh | 3 ++- tests/lint/flake8.sh | 3 ++- tests/lint/git-black.sh | 2 +- tests/lint/git-clang-format.sh | 2 +- tests/lint/jnilint.sh | 3 ++- tests/lint/pylint.sh | 2 +- tests/lint/python_format.sh | 3 ++- tests/lint/rust_format.sh | 2 +- tests/scripts/setup-pytest-env.sh | 2 +- tests/scripts/task_build.sh | 2 +- tests/scripts/task_ci_setup.sh | 2 +- tests/scripts/task_clean.sh | 2 +- tests/scripts/task_config_build_arm.sh | 2 +- tests/scripts/task_config_build_cpu.sh | 2 +- tests/scripts/task_config_build_gpu.sh | 2 +- tests/scripts/task_config_build_gpu_other.sh | 2 +- tests/scripts/task_config_build_gpu_vulkan.sh | 2 +- tests/scripts/task_config_build_i386.sh | 2 +- tests/scripts/task_config_build_qemu.sh | 2 +- tests/scripts/task_config_build_wasm.sh | 2 +- tests/scripts/task_cpp_unittest.sh | 2 +- tests/scripts/task_demo_microtvm.sh | 2 +- tests/scripts/task_golang.sh | 2 +- tests/scripts/task_java_unittest.sh | 2 +- tests/scripts/task_lint.sh | 2 +- tests/scripts/task_mypy.sh | 2 +- tests/scripts/task_python_arm_compute_library.sh | 2 +- tests/scripts/task_python_docs.sh | 2 +- tests/scripts/task_python_ethosn_tests.sh | 2 +- tests/scripts/task_python_frontend.sh | 2 +- tests/scripts/task_python_frontend_cpu.sh | 2 +- tests/scripts/task_python_integration.sh | 2 +- tests/scripts/task_python_integration_gpuonly.sh | 2 +- tests/scripts/task_python_integration_i386only.sh | 2 +- tests/scripts/task_python_microtvm.sh | 2 +- tests/scripts/task_python_nightly.sh | 2 +- tests/scripts/task_python_topi.sh | 2 +- tests/scripts/task_python_unittest.sh | 2 +- tests/scripts/task_python_unittest_gpuonly.sh | 2 +- tests/scripts/task_python_vta_fsim.sh | 2 +- tests/scripts/task_python_vta_tsim.sh | 2 +- tests/scripts/task_rust.sh | 2 +- tests/scripts/task_show_node_info.sh | 2 +- tests/scripts/task_web_wasm.sh | 2 +- 47 files changed, 53 insertions(+), 47 deletions(-) diff --git a/tests/lint/check_asf_header.sh b/tests/lint/check_asf_header.sh index cd5fe6474c769..88233e4dd5cb5 100755 --- a/tests/lint/check_asf_header.sh +++ b/tests/lint/check_asf_header.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -16,6 +16,7 @@ # specific language governing permissions and limitations # under the License. +set -e rat_tempdir="$(mktemp -d)" diff --git a/tests/lint/clang_format.sh b/tests/lint/clang_format.sh index ad6a35bb4104a..f131caff2251c 100755 --- a/tests/lint/clang_format.sh +++ b/tests/lint/clang_format.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -16,6 +16,7 @@ # specific language governing permissions and limitations # under the License. +set -e # check lastest change, for squash merge into main ./tests/lint/git-clang-format.sh HEAD~1 diff --git a/tests/lint/cppdocs.sh b/tests/lint/cppdocs.sh index d29b6cdd236be..af5a98c5139eb 100755 --- a/tests/lint/cppdocs.sh +++ b/tests/lint/cppdocs.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/lint/cpplint.sh b/tests/lint/cpplint.sh index 31eb1d94a3472..687f4ab6fe434 100755 --- a/tests/lint/cpplint.sh +++ b/tests/lint/cpplint.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -16,6 +16,7 @@ # specific language governing permissions and limitations # under the License. +set -e python3 3rdparty/dmlc-core/scripts/lint.py vta cpp vta/include vta/src python3 3rdparty/dmlc-core/scripts/lint.py tvm cpp \ diff --git a/tests/lint/flake8.sh b/tests/lint/flake8.sh index b16d97fce3612..63dad38166b14 100755 --- a/tests/lint/flake8.sh +++ b/tests/lint/flake8.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -16,5 +16,6 @@ # specific language governing permissions and limitations # under the License. +set -e python3 -m flake8 . --count --select=E9,F63,F7 --show-source --statistics diff --git a/tests/lint/git-black.sh b/tests/lint/git-black.sh index 4052c052463eb..68f9b13951c33 100755 --- a/tests/lint/git-black.sh +++ b/tests/lint/git-black.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/lint/git-clang-format.sh b/tests/lint/git-clang-format.sh index 37d05320919c7..8c9e6c5b475ba 100755 --- a/tests/lint/git-clang-format.sh +++ b/tests/lint/git-clang-format.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/lint/jnilint.sh b/tests/lint/jnilint.sh index 39b80489d65e6..ec359a5b89ae3 100755 --- a/tests/lint/jnilint.sh +++ b/tests/lint/jnilint.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -16,5 +16,6 @@ # specific language governing permissions and limitations # under the License. +set -e python3 3rdparty/dmlc-core/scripts/lint.py tvm4j-jni cpp jvm/native/src diff --git a/tests/lint/pylint.sh b/tests/lint/pylint.sh index 2cb38802bf902..6c958a9231395 100755 --- a/tests/lint/pylint.sh +++ b/tests/lint/pylint.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/lint/python_format.sh b/tests/lint/python_format.sh index 2e907f8be9e1c..35fa60bae510d 100755 --- a/tests/lint/python_format.sh +++ b/tests/lint/python_format.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information @@ -16,6 +16,7 @@ # specific language governing permissions and limitations # under the License. +set -e ./tests/lint/git-black.sh HEAD~1 ./tests/lint/git-black.sh origin/main diff --git a/tests/lint/rust_format.sh b/tests/lint/rust_format.sh index 10c8feec1fcf6..bed7ad976ea63 100755 --- a/tests/lint/rust_format.sh +++ b/tests/lint/rust_format.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/setup-pytest-env.sh b/tests/scripts/setup-pytest-env.sh index bcd27a16f6598..79662f5bf4870 100755 --- a/tests/scripts/setup-pytest-env.sh +++ b/tests/scripts/setup-pytest-env.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_build.sh b/tests/scripts/task_build.sh index 845b7153ae200..0623429aa4f51 100755 --- a/tests/scripts/task_build.sh +++ b/tests/scripts/task_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_ci_setup.sh b/tests/scripts/task_ci_setup.sh index 33ea484a52685..071de4859c686 100755 --- a/tests/scripts/task_ci_setup.sh +++ b/tests/scripts/task_ci_setup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_clean.sh b/tests/scripts/task_clean.sh index f552fe5ece2aa..2ddc0d3db84db 100755 --- a/tests/scripts/task_clean.sh +++ b/tests/scripts/task_clean.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_config_build_arm.sh b/tests/scripts/task_config_build_arm.sh index d086783319f73..435ea00bc671d 100755 --- a/tests/scripts/task_config_build_arm.sh +++ b/tests/scripts/task_config_build_arm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_config_build_cpu.sh b/tests/scripts/task_config_build_cpu.sh index 3a4500d0e2f05..e0935ae3c1de8 100755 --- a/tests/scripts/task_config_build_cpu.sh +++ b/tests/scripts/task_config_build_cpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_config_build_gpu.sh b/tests/scripts/task_config_build_gpu.sh index 9244d0330becb..c31b4534b5480 100755 --- a/tests/scripts/task_config_build_gpu.sh +++ b/tests/scripts/task_config_build_gpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_config_build_gpu_other.sh b/tests/scripts/task_config_build_gpu_other.sh index b5811ea8818e6..90aa8d42e02f8 100755 --- a/tests/scripts/task_config_build_gpu_other.sh +++ b/tests/scripts/task_config_build_gpu_other.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_config_build_gpu_vulkan.sh b/tests/scripts/task_config_build_gpu_vulkan.sh index 93adc9667da7b..eb26730e89d4e 100755 --- a/tests/scripts/task_config_build_gpu_vulkan.sh +++ b/tests/scripts/task_config_build_gpu_vulkan.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_config_build_i386.sh b/tests/scripts/task_config_build_i386.sh index 1c3bc4c1ae0ef..af2291b2ca82d 100755 --- a/tests/scripts/task_config_build_i386.sh +++ b/tests/scripts/task_config_build_i386.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_config_build_qemu.sh b/tests/scripts/task_config_build_qemu.sh index 134de9d3d3a32..0072e713e3706 100755 --- a/tests/scripts/task_config_build_qemu.sh +++ b/tests/scripts/task_config_build_qemu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_config_build_wasm.sh b/tests/scripts/task_config_build_wasm.sh index 8636db464e624..36fad5389a9a3 100755 --- a/tests/scripts/task_config_build_wasm.sh +++ b/tests/scripts/task_config_build_wasm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_cpp_unittest.sh b/tests/scripts/task_cpp_unittest.sh index 3df7b580d79da..2ff6c627f7618 100755 --- a/tests/scripts/task_cpp_unittest.sh +++ b/tests/scripts/task_cpp_unittest.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_demo_microtvm.sh b/tests/scripts/task_demo_microtvm.sh index c569f6ce686ca..144b98a16ae1a 100755 --- a/tests/scripts/task_demo_microtvm.sh +++ b/tests/scripts/task_demo_microtvm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_golang.sh b/tests/scripts/task_golang.sh index 5b01eeca164cd..b79a2a5d9208b 100755 --- a/tests/scripts/task_golang.sh +++ b/tests/scripts/task_golang.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_java_unittest.sh b/tests/scripts/task_java_unittest.sh index 7818d7d458d63..70ad53d62737e 100755 --- a/tests/scripts/task_java_unittest.sh +++ b/tests/scripts/task_java_unittest.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_lint.sh b/tests/scripts/task_lint.sh index 3ebee3219260a..0a01bea96bb1b 100755 --- a/tests/scripts/task_lint.sh +++ b/tests/scripts/task_lint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_mypy.sh b/tests/scripts/task_mypy.sh index 0e20fc22cfb2b..2148aeb5e4b42 100755 --- a/tests/scripts/task_mypy.sh +++ b/tests/scripts/task_mypy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_arm_compute_library.sh b/tests/scripts/task_python_arm_compute_library.sh index 7df894d933999..bc0cf176099bb 100755 --- a/tests/scripts/task_python_arm_compute_library.sh +++ b/tests/scripts/task_python_arm_compute_library.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_docs.sh b/tests/scripts/task_python_docs.sh index 6d2dde58b97d2..df3f1abf5f57c 100755 --- a/tests/scripts/task_python_docs.sh +++ b/tests/scripts/task_python_docs.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_ethosn_tests.sh b/tests/scripts/task_python_ethosn_tests.sh index 6f6c81703282b..aeef9e64b251c 100755 --- a/tests/scripts/task_python_ethosn_tests.sh +++ b/tests/scripts/task_python_ethosn_tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_frontend.sh b/tests/scripts/task_python_frontend.sh index 6c0cd8df67f5b..0352be701717f 100755 --- a/tests/scripts/task_python_frontend.sh +++ b/tests/scripts/task_python_frontend.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_frontend_cpu.sh b/tests/scripts/task_python_frontend_cpu.sh index 208714c64988f..f12177dc7f93b 100755 --- a/tests/scripts/task_python_frontend_cpu.sh +++ b/tests/scripts/task_python_frontend_cpu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_integration.sh b/tests/scripts/task_python_integration.sh index 3bd063e2b5d5e..d831481acea62 100755 --- a/tests/scripts/task_python_integration.sh +++ b/tests/scripts/task_python_integration.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_integration_gpuonly.sh b/tests/scripts/task_python_integration_gpuonly.sh index cb6bec40c22f5..d4d6e26d88f2b 100755 --- a/tests/scripts/task_python_integration_gpuonly.sh +++ b/tests/scripts/task_python_integration_gpuonly.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_integration_i386only.sh b/tests/scripts/task_python_integration_i386only.sh index 9c378a647e3e2..9b0c30b7aeeff 100755 --- a/tests/scripts/task_python_integration_i386only.sh +++ b/tests/scripts/task_python_integration_i386only.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_microtvm.sh b/tests/scripts/task_python_microtvm.sh index d3fe43a432278..8e6e2bdeaf691 100755 --- a/tests/scripts/task_python_microtvm.sh +++ b/tests/scripts/task_python_microtvm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_nightly.sh b/tests/scripts/task_python_nightly.sh index 16c94dfdad31d..225892b02b798 100755 --- a/tests/scripts/task_python_nightly.sh +++ b/tests/scripts/task_python_nightly.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_topi.sh b/tests/scripts/task_python_topi.sh index 06046ad76161f..1b2bf21cb6a7d 100755 --- a/tests/scripts/task_python_topi.sh +++ b/tests/scripts/task_python_topi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_unittest.sh b/tests/scripts/task_python_unittest.sh index 7ff433cb9db19..4cae8c36cce42 100755 --- a/tests/scripts/task_python_unittest.sh +++ b/tests/scripts/task_python_unittest.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_unittest_gpuonly.sh b/tests/scripts/task_python_unittest_gpuonly.sh index 85fa293c31af5..bb453026e7eab 100755 --- a/tests/scripts/task_python_unittest_gpuonly.sh +++ b/tests/scripts/task_python_unittest_gpuonly.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_vta_fsim.sh b/tests/scripts/task_python_vta_fsim.sh index 4074fb8883515..6ba78167ac8ce 100755 --- a/tests/scripts/task_python_vta_fsim.sh +++ b/tests/scripts/task_python_vta_fsim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_python_vta_tsim.sh b/tests/scripts/task_python_vta_tsim.sh index 4c21f46c5f816..95d1a2cbf0016 100755 --- a/tests/scripts/task_python_vta_tsim.sh +++ b/tests/scripts/task_python_vta_tsim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_rust.sh b/tests/scripts/task_rust.sh index 5cc1dc0503f72..0c0e283afd35d 100755 --- a/tests/scripts/task_rust.sh +++ b/tests/scripts/task_rust.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_show_node_info.sh b/tests/scripts/task_show_node_info.sh index c7b1bb80d7fa6..c4da91be5df11 100755 --- a/tests/scripts/task_show_node_info.sh +++ b/tests/scripts/task_show_node_info.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information diff --git a/tests/scripts/task_web_wasm.sh b/tests/scripts/task_web_wasm.sh index c117bb08c6f4d..bdb51a007ef6a 100755 --- a/tests/scripts/task_web_wasm.sh +++ b/tests/scripts/task_web_wasm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information