mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
chore: run smoke test in lldb
This commit is contained in:
@@ -12,7 +12,8 @@ client_map=()
|
||||
|
||||
for client in "${clients[@]}"; do
|
||||
echo "Starting test for $client"
|
||||
./install/smoke_test "$client" > "$log_dir/asst_${client}.log" 2>&1 &
|
||||
lldb -o run -o 'bt all' -o kill -o quit \
|
||||
-- ./install/smoke_test "$client" > "$log_dir/asst_${client}.log" 2>&1 &
|
||||
pids+=($!)
|
||||
client_map+=("$client")
|
||||
done
|
||||
@@ -21,7 +22,8 @@ for i in {0..$(( ${#pids} - 1 ))}; do
|
||||
pid=${pids[$i]}
|
||||
client=${client_map[$i]}
|
||||
|
||||
if ! wait $pid; then
|
||||
wait $pid
|
||||
if [[ -n "$client" ]] && ! grep 'exited with status = 0' "$log_dir/asst_${client}.log"; then
|
||||
error_clients+=("$client")
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user