Commit 82e255bf authored by Anas Nashif's avatar Anas Nashif
Browse files

actions: check of testplan exists


Check if test plan exist before trying to read it.
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 552a0e15
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
......@@ -71,7 +71,11 @@ jobs:
python3 ./scripts/ci/test_plan.py -c origin/${BASE_REF}.. --pull-request
# get number of tests
lines=$(wc -l < testplan.csv)
if [ -s testplan.csv ]; then
lines=$(wc -l < testplan.csv)
else
lines=1
fi
if [ "$lines" = 1 ]; then
# no tests, so we need 0 nodes
nodes=0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment