Skip to content

Commit 3fcecc3

Browse files
committed
actions: check of testplan exists
Check if test plan exist before trying to read it. Signed-off-by: Anas Nashif <[email protected]>
1 parent 0b2df8f commit 3fcecc3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/twister.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ jobs:
7575
python3 ./scripts/ci/test_plan.py -c origin/${BASE_REF}.. --pull-request
7676
7777
# get number of tests
78-
lines=$(wc -l < testplan.csv)
78+
if [ -s testplan.csv ]; then
79+
lines=$(wc -l < testplan.csv)
80+
else
81+
lines=1
82+
fi
7983
if [ "$lines" = 1 ]; then
8084
# no tests, so we need 0 nodes
8185
nodes=0

0 commit comments

Comments
 (0)