Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Runner/plans/meta-ar-ci-premerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ run:
- $PWD/utils/send-to-lava.sh $PWD/suites/Multimedia/Audio/AudioPlayback/AudioPlayback.res || true
- $PWD/suites/Multimedia/Audio/AudioRecord/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Multimedia/Audio/AudioRecord/AudioRecord.res || true
- $PWD/utils/result_parse.sh

1 change: 1 addition & 0 deletions Runner/plans/meta-qcom_PreMerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ run:
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/watchdog.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/wpss_remoteproc.res || true
- $PWD/utils/result_parse.sh
1 change: 1 addition & 0 deletions Runner/plans/qcom-next-ci-premerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ run:
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/watchdog.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/wpss_remoteproc/wpss_remoteproc.res || true
- $PWD/utils/result_parse.sh
28 changes: 28 additions & 0 deletions Runner/utils/result_parse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear
echo "Current working directory is $PWD"

find . -type f -name "*.res" 2>/dev/null | while IFS= read res_file; do
echo "$res_file"
if [ -f "$res_file" ]; then
while IFS= read line; do
# Skip empty lines
[ -z "$line" ] && continue

# Split line into words
set -- $line
tc_name=$1
result=$2
# Report each test case result to LAVA
if [ -n "$tc_name" ] && [ -n "$result" ]; then
if [ "$result" = "FAIL" ]; then
exit 1
fi
else
echo "Warning: Skipping malformed line: $line"
fi
done < "$res_file"
fi
done
Loading