mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2025-12-31 20:36:26 +00:00
Fix test for pip GH workflow
This commit is contained in:
4
.github/workflows/pip.yml
vendored
4
.github/workflows/pip.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
||||
run: pip install --verbose .[test]
|
||||
|
||||
- name: Test import
|
||||
run: python -c "import pylibbpf; print('Import successful')"
|
||||
run: python -I -c "import pylibbpf; print('Import successful')"
|
||||
|
||||
- name: Test
|
||||
run: python -m pytest -v
|
||||
run: python -I -m pytest -v
|
||||
|
||||
@ -2,6 +2,6 @@ import pylibbpf as m
|
||||
|
||||
|
||||
def test_main():
|
||||
assert m.__version__ == "0.0.5"
|
||||
prog = m.BpfObject("tests/execve2.o")
|
||||
assert m.__version__ == "0.0.6"
|
||||
prog = m.BpfObject("tests/execve2.o", structs={})
|
||||
print(prog)
|
||||
|
||||
Reference in New Issue
Block a user