Skip to content

Commit

Permalink
workflow: fix incorrect files number for optimizer test
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Tang <tangbin.bin@bytedance.com>
  • Loading branch information
sctb512 committed Jun 5, 2023
1 parent 1c0b46e commit d2d69c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/optimizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "main"
- "fix-optimizer-workflow"
tags:
- v[0-9]+.[0-9]+.[0-9]+
pull_request:
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
tree /opt/nri/optimizer/results/
count=$(cat /opt/nri/optimizer/results/library/nginx:1.23.3 | wc -l)
echo $count
if [ "$count" != 44 ]; then
if [ $count -eq 0 ]; then
echo "failed to generate accessed files list for nginx:1.23.3"
exit 1
fi
Expand Down

0 comments on commit d2d69c3

Please sign in to comment.