Files
yuanjiazheng d89ed00bb8 Fix executable permissions on scripts.
Signed-off-by: yuanjiazheng <yuanjiazheng1@h-partners.com>

🤖 AI[0%] 🔧 Human Fixed[0%] 🧑 Human[0%] 👌 AI Adopted[0%]
2026-08-17 10:09:07 +08:00

32 lines
941 B
Bash
Executable File

#!/bin/bash
# Copyright (C) 2026 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
xts_suite_dir="$1"
log_path="$2"
cwd="$(dirname "$0")"
mkdir -p "$(dirname "$log_path")"
rm -rf "$log_path"
echo "log_path: $log_path" > "$log_path"
echo "PYTHON3: $PYTHON3" >> "$log_path"
if ! "${PYTHON3:-python3}" -B "${cwd}/xts_preprocess.py" "$xts_suite_dir" >> "$log_path" 2>&1; then
cat "$log_path" >&2
exit 1
fi