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

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