Add root-aware privileged CI test lane
All checks were successful
smoke / smoke (push) Successful in 29s

This commit is contained in:
Vibe Myass
2026-03-16 04:36:14 +00:00
parent 481d70ce72
commit 3b523b78df
5 changed files with 133 additions and 7 deletions

View File

@@ -53,6 +53,7 @@ public sealed class NftContextTests
}
[Fact]
[Trait("Category", "Privileged")]
public void ValidDryRunCommand_CanExecuteAndBufferOutput()
{
if (!NativeTestSupport.TryCreateContext(out var ctx))
@@ -60,7 +61,7 @@ public sealed class NftContextTests
return;
}
if (!NativeTestSupport.HasCapNetAdmin())
if (!NativeTestSupport.ShouldRunPrivilegedTests())
{
return;
}