Skip to content

LAVA support along with test definitions comment fixes #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 3 additions & 10 deletions Runner/init_env
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
# Source this file to setup the test suite environment
if [ -e '/var/Runner' ];then
export BASEDIR='/var/Runner'
export TOOLS='/var/Runner/utils'
export SUITES='/var/Runner/suites'
export CALIBRATION='/var/Runner/calib.txt'
export FTRACE_EVENTS='/var/Runner/ftrace_events'
export PATH=$PATH:'/bin'
export PATH=$PATH:'/sbin'
fi

export BASEDIR=$(pwd)
export TOOLS=$(pwd)/utils
export SUITES=$(pwd)/suites
17 changes: 17 additions & 0 deletions Runner/plans/AudioCI_PreMerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
metadata:
format: Lava-Test Test Definition 1.0
name: AUSanity
description: "Baseline AU Sanity test plan"
maintainer:
- vnarapar@qti.qualcomm.com
os:
- openembedded
scope:
- functional
devices:
- rb3gen2

run:
steps:
- cd Runner
- chmod -R 777 *
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the steps are missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

steps will be added once audio related testcases are merged

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just remove it from the commit. No point carrying empty/broken test definition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

55 changes: 55 additions & 0 deletions Runner/plans/KernelCI_PreMerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
metadata:
format: Lava-Test Test Definition 1.0
name: AUSanity
description: "Baseline AU Sanity test plan"
maintainer:
- vnarapar@qti.qualcomm.com
os:
- openembedded
scope:
- functional
devices:
- rb3gen2

run:
steps:
- cd Runner
- chmod -R 777 *
- $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/adsp_remoteproc.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/cdsp_remoteproc.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/CPUFreq_Validation.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/GIC/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/GIC/GIC.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/hotplug.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/Interrupts.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/iommu/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/iommu/iommu.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/IPA/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPA/IPA.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/IPCC.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/irq/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/irq/irq.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/kaslr.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/MEMLAT/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/pinctrl.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/Reboot_health_check.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/remoteproc.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/RMNET.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/rngtest/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/smmu/smmu.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/storage/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/storage/storage.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/run.sh || true
- $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
59 changes: 59 additions & 0 deletions Runner/plans/meta-qcom_PreMerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
metadata:
format: Lava-Test Test Definition 1.0
name: AUSanity
description: "Baseline AU Sanity test plan"
maintainer:
- vnarapar@qti.qualcomm.com
os:
- openembedded
scope:
- functional
devices:
- rb3gen2

run:
steps:
- cd Runner
- chmod -R 777 *
- $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/adsp_remoteproc.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/cdsp_remoteproc.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/CPUFreq_Validation.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/GIC/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/GIC/GIC.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/hotplug/hotplug.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Interrupts/Interrupts.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/iommu/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/iommu/iommu.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/IPA/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPA/IPA.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/IPCC/IPCC.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/irq/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/irq/irq.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/kaslr/kaslr.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/pinctrl/pinctrl.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/qcrypto/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/qcrypto/qcrypto.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Reboot_health_check/Reboot_health_check.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/remoteproc/remoteproc.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/RMNET/RMNET.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/smmu/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/smmu/smmu.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/storage/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/storage/storage.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/Timer/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/FunctionalArea/baseport/Timer/Timer.res || true
- $PWD/suites/Kernel/FunctionalArea/baseport/watchdog/run.sh || true
- $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
6 changes: 3 additions & 3 deletions Runner/suites/Kernel/FunctionalArea/baseport/BWMON/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ done

if $incremented; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
6 changes: 3 additions & 3 deletions Runner/suites/Kernel/FunctionalArea/baseport/Buses/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ output=$(i2c-msm-test -v -D /dev/i2c-0 -l | grep "ret:1")

if echo "$output" | grep -q "Reading"; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
2 changes: 2 additions & 0 deletions Runner/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,13 @@ if $overall_pass; then
echo -e "${GREEN}[OVERALL PASS]${NC} All CPUs validated successfully."
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > "$test_path/$TESTNAME.res"
exit 0
else
echo -e "${RED}[OVERALL FAIL]${NC} Some CPUs failed frequency validation."
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > "$test_path/$TESTNAME.res"
exit 1
fi

Expand Down
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/GIC/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ echo "$initial_count" | while read -r line; do
echo $fail_test
if [ "$fail_test" = false ]; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
fi
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some condition is missing here.

echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
done
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/IPA/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ log_info "output of insmod $TEST"
if /sbin/lsmod | /bin/grep "ipa"; then
log_info "$(/sbin/lsmod | /bin/grep "ipa")"
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_error "rmnet module not running"
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/IPCC/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ count=$(echo "$output" | grep -c "running")

if [ $count -eq 4 ]; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/Interrupts/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ echo "$initial_count" | while read -r line; do
echo $fail_test
if [ "$fail_test" = false ]; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
fi
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
done
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/MEMLAT/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ else
fi
if $incremented; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/RMNET/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ log_info "output of insmod $TEST"
if /sbin/lsmod | /bin/grep "rmnet"; then
log_info "$(/sbin/lsmod | /bin/grep "rmnet")"
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_error "rmnet module not running"
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/Timer/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ OUTPUT=$($BINARY_PATH)
# Check if "pass:7" is in the output
if [[ $OUTPUT == *"pass:7"* ]]; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
8 changes: 4 additions & 4 deletions Runner/suites/Kernel/FunctionalArea/baseport/adsp_remoteproc/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ state1=$(cat ${remoteproc_path}/state)

if [ "$state1" != "running" ]; then
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
exit 1
fi

Expand All @@ -37,7 +37,7 @@ echo stop > ${remoteproc_path}/state
state3=$(cat ${remoteproc_path}/state)
if [ "$state3" != "offline" ]; then
log_fail "adsp stop failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
exit 1
else
log_pass "adsp stop successful"
Expand All @@ -50,12 +50,12 @@ echo start > ${remoteproc_path}/state
state5=$(cat ${remoteproc_path}/state)
if [ "$state5" != "running" ]; then
log_fail "adsp start failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
exit 1
fi

# If all checks pass, print "PASS"
echo "adsp PASS"
log_pass "adsp PASS"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
8 changes: 4 additions & 4 deletions Runner/suites/Kernel/FunctionalArea/baseport/cdsp_remoteproc/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ remoteproc_path="/sys/class/remoteproc/remoteproc${remoteproc_number}"
state1=$(cat ${remoteproc_path}/state)
if [ "$state1" != "running" ]; then
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
exit 1
fi

Expand All @@ -35,7 +35,7 @@ echo stop > ${remoteproc_path}/state
state3=$(cat ${remoteproc_path}/state)
if [ "$state3" != "offline" ]; then
log_fail "cdsp stop failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
exit 1
else
log_pass "cdsp stop successful"
Expand All @@ -48,12 +48,12 @@ echo start > ${remoteproc_path}/state
state5=$(cat ${remoteproc_path}/state)
if [ "$state5" != "running" ]; then
log_fail "cdsp start failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
exit 1
fi

# If all checks pass, print "PASS"
echo "cdsp PASS"
log_pass "cdsp PASS"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
3 changes: 2 additions & 1 deletion Runner/suites/Kernel/FunctionalArea/baseport/hotplug/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ check_cpu_status | tee -a "$LOG_FILE"
# Print overall test result
if [ "$test_passed" = true ]; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/iommu/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ OUTPUT=$(dmesg | grep iommu)
# Check if the output is null
if [ -z "$OUTPUT" ]; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
4 changes: 2 additions & 2 deletions Runner/suites/Kernel/FunctionalArea/baseport/irq/run.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ echo "$initial_count" | while read -r line; do

if [ "$fail_test" = false ]; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME : Test Passed" > $test_path/$TESTNAME.res
echo "$TESTNAME PASS" > $test_path/$TESTNAME.res
else
log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME : Test Failed" > $test_path/$TESTNAME.res
echo "$TESTNAME FAIL" > $test_path/$TESTNAME.res
fi
done
log_info "-------------------Completed $TESTNAME Testcase----------------------------"
Loading