Skip to content

Commit

Permalink
fix test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Daan Spitz committed Jul 12, 2017
1 parent 505f50a commit de2fa85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/test_elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def test_elf_static_info():
assert ELF("files/busybox-i686.elf").run() == {
assert ELF("tests/files/busybox-i686.elf").run() == {
"file_header": {
"abi_version": 0,
"class": "ELF32",
Expand Down Expand Up @@ -56,7 +56,7 @@ def test_elf_static_info():


def test_elf_static_info_tags():
assert ELF("files/ls-x86_64.elf").run()["dynamic_tags"] == [
assert ELF("tests/files/ls-x86_64.elf").run()["dynamic_tags"] == [
{"tag": "0x0000000000000001", "type": "NEEDED", "value": "Shared library: [libselinux.so.1]"},
{"tag": "0x0000000000000001", "type": "NEEDED", "value": "Shared library: [libc.so.6]"},
{"tag": "0x000000000000000c", "type": "INIT", "value": "0x00000000004022b8"},
Expand Down Expand Up @@ -86,7 +86,7 @@ def test_elf_static_info_tags():


def test_elf_static_info_symbols():
assert ELF("files/ls-x86_64.elf").run()["symbol_tables"] == [
assert ELF("tests/files/ls-x86_64.elf").run()["symbol_tables"] == [
{"bind": "LOCAL", "ndx_name": "", "type": "NOTYPE", "value": "0x0000000000000000"},
{"bind": "GLOBAL", "ndx_name": "__ctype_toupper_loc", "type": "FUNC", "value": "0x0000000000000000"},
{"bind": "GLOBAL", "ndx_name": "__uflow", "type": "FUNC", "value": "0x0000000000000000"},
Expand Down Expand Up @@ -228,7 +228,7 @@ def test_elf_static_info_symbols():


def test_elf_static_info_notes():
assert ELF("files/ls-x86_64.elf").run()["notes"] == [
assert ELF("tests/files/ls-x86_64.elf").run()["notes"] == [
{
"name": "GNU",
"note": "NT_GNU_ABI_TAG (ABI version tag)\n" +
Expand All @@ -246,7 +246,7 @@ def test_elf_static_info_notes():


def test_elf_static_info_relocations():
assert ELF("files/ls-x86_64.elf").run()["relocations"] == [
assert ELF("tests/files/ls-x86_64.elf").run()["relocations"] == [
{
"name": ".rela.dyn",
"entries": [
Expand Down
2 changes: 1 addition & 1 deletion tests/test_stap.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def test_staplog():
with open("files/stap.log") as fd:
with open("tests/files/stap.log") as fd:
assert list(StapParser(fd)) == [
{
"api": "execve",
Expand Down

0 comments on commit de2fa85

Please sign in to comment.