Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Jan 1, 2024
1 parent 74131fe commit 4c526e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: build-${{matrix.os}}
strategy:
matrix:
os: [ubuntu-2004]
os: [ubuntu-2004, ubuntu-latest]

# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -61,6 +61,12 @@ jobs:
sudo modprobe ip6table_filter
sudo modprobe ip6table_mangle
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
update-alternatives --set iptables /usr/sbin/iptables-legacy
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
update-
fi
- name: NUnit Tests
run: SKIP_SYSTEM_TESTS=1 dotnet test IPTables.Net.Tests

Expand Down
2 changes: 1 addition & 1 deletion IPTables.Net.Tests/IptablesLibraryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void TestRuleAdd()
client.EndTransactionCommit();
}

var proc = Process.Start(new ProcessStartInfo("/sbin/" + GetBinary(), "-L test2"){RedirectStandardOutput = true, UseShellExecute = false});
var proc = Process.Start(new ProcessStartInfo(GetBinary(), "-L test2"){RedirectStandardOutput = true, UseShellExecute = false});
proc.WaitForExit();
String listOutput = proc.StandardOutput.ReadToEnd();
Assert.IsTrue(listOutput.Contains("anywhere"), "must have created rule");
Expand Down

0 comments on commit 4c526e4

Please sign in to comment.