diff --git a/test/test_objdump_parser.py b/test/test_objdump_parser.py index 3141f5a6f..5316eb0ef 100644 --- a/test/test_objdump_parser.py +++ b/test/test_objdump_parser.py @@ -52,5 +52,8 @@ def test_executable_stack_package(binariescheck): run_elf_checks(test, FakePkg('fake'), pkgfile) out = output.print_results(output.results) + if 'ldd-failed' in out: + pytest.skip("ldd failed, maybe it's a different architecture") + assert 'W: missing-mandatory-optflags a.out -fno-PIE -g -Ofast' in out assert 'E: forbidden-optflags a.out -frounding-math' in out diff --git a/test/test_readelf_parser.py b/test/test_readelf_parser.py index 34b2c6aa3..28df231ba 100644 --- a/test/test_readelf_parser.py +++ b/test/test_readelf_parser.py @@ -161,7 +161,12 @@ def test_executable_stack(binariescheck): with FakePkg('fake') as pkg: pkgfile = pkg.add_file(get_full_path('executable-stack'), '/lib64/my/a.out') run_elf_checks(test, pkg, pkgfile) - assert 'E: executable-stack /lib64/my/a.out' in output.results[0] + out = output.print_results(output.results) + + if 'ldd-failed' in out: + pytest.skip("ldd failed, maybe it's a different architecture") + + assert 'E: executable-stack /lib64/my/a.out' in out def test_readelf_failure():