Skip to content
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

run-vmtest: fixes in run-bpf-selftests.sh #167

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

theihor
Copy link
Contributor

@theihor theihor commented Jan 15, 2025

test -f && is not exactly what we want: it returns non-0 exit code if file does not exists.

Replace them with an explicit if statement.

Example failure: https://github.com/libbpf/libbpf/actions/runs/12794559630/job/35669958975

test -f <file> && <command> is not exactly what we want: it returns
non-0 exit code if file does not exists.

Replace them with an explicit if statement.

Example failure: https://github.com/libbpf/libbpf/actions/runs/12794559630/job/35669958975

Signed-off-by: Ihor Solodrai <[email protected]>
theihor added a commit to theihor/libbpf that referenced this pull request Jan 15, 2025
@theihor
Copy link
Contributor Author

theihor commented Jan 15, 2025

@theihor theihor merged commit 2fc8ebb into libbpf:main Jan 15, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant