Blame SOURCES/0014-tests-monitor-Support-testing-host-s-nft-binary.patch

f1d1c0
From 18e1b545cbd2d055b16ec3bf5f481d8032dc5dbe Mon Sep 17 00:00:00 2001
f1d1c0
From: Phil Sutter <psutter@redhat.com>
f1d1c0
Date: Wed, 12 Feb 2020 22:35:27 +0100
f1d1c0
Subject: [PATCH] tests: monitor: Support testing host's nft binary
f1d1c0
f1d1c0
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1754047
f1d1c0
Upstream Status: nftables commit 15ede6857c8c5
f1d1c0
f1d1c0
commit 15ede6857c8c578ec6211c8b68424183ba1baf1a
f1d1c0
Author: Phil Sutter <phil@nwl.cc>
f1d1c0
Date:   Wed Feb 5 19:48:53 2020 +0100
f1d1c0
f1d1c0
    tests: monitor: Support testing host's nft binary
f1d1c0
f1d1c0
    Add support for -H/--host flag to use 'nft' tool from $PATH instead of
f1d1c0
    the local one.
f1d1c0
f1d1c0
    Signed-off-by: Phil Sutter <phil@nwl.cc>
f1d1c0
---
f1d1c0
 tests/monitor/run-tests.sh | 4 ++++
f1d1c0
 1 file changed, 4 insertions(+)
f1d1c0
f1d1c0
diff --git a/tests/monitor/run-tests.sh b/tests/monitor/run-tests.sh
f1d1c0
index efacdaa..ffb833a 100755
f1d1c0
--- a/tests/monitor/run-tests.sh
f1d1c0
+++ b/tests/monitor/run-tests.sh
f1d1c0
@@ -119,6 +119,10 @@ while [ -n "$1" ]; do
f1d1c0
 		test_json=true
f1d1c0
 		shift
f1d1c0
 		;;
f1d1c0
+	-H|--host)
f1d1c0
+		nft=nft
f1d1c0
+		shift
f1d1c0
+		;;
f1d1c0
 	testcases/*.t)
f1d1c0
 		testcases+=" $1"
f1d1c0
 		shift
f1d1c0
-- 
bfbb76
2.31.1
f1d1c0