Make test_fdb_pkgs faster and fix test_execstack_permissions_libfdb_c (#7832)

This commit is contained in:
Marian Dvorsky 2022-08-09 21:58:38 +02:00 committed by GitHub
parent fdf8e431ee
commit 8a02b666d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -165,7 +165,6 @@ def centos_image_with_fdb_helper(versioned: bool) -> Iterator[Optional[Image]]:
container = Container("centos:7", initd=True)
for rpm in rpms:
container.copy_to(rpm, "/opt")
container.run(["bash", "-c", "yum update -y"])
container.run(
["bash", "-c", "yum install -y prelink"]
) # this is for testing libfdb_c execstack permissions
@ -327,7 +326,7 @@ def test_execstack_permissions_libfdb_c(linux_container: Container, snapshot):
[
"bash",
"-c",
"execstack -q $(ldconfig -p | grep libfdb_c | awk '{print $(NF)}')",
"execstack -q $(ldconfig -p | grep libfdb_c.so | awk '{print $(NF)}')",
]
)