Skip to content

Commit

Permalink
Merge pull request #3238 from cgwalters/force-container-env
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon authored May 3, 2024
2 parents 64ab098 + 3d3f0b8 commit a00062b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test-libarchive-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,9 @@ test_libarchive_selinux (gconstpointer data)

if (skip_if_no_xattr (td))
goto out;
if (getenv ("container"))
// xref https://bugzilla.redhat.com/show_bug.cgi?id=2278652
if (getenv ("container") || g_file_test ("/run/.containerenv", G_FILE_TEST_EXISTS)
|| g_file_test ("/.dockerenv", G_FILE_TEST_EXISTS))
{
// FIXME dedup this with libtest.sh have_selinux_relabel
g_test_skip ("skip in containers for now");
Expand Down

0 comments on commit a00062b

Please sign in to comment.