From a3e7fd9c61bf37de3d6952fa8c7134a4df0b9c6c Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 12 Feb 2021 18:57:58 +1100 Subject: [PATCH] ctdb-tests: Fix nonsense arguments to ps stub These were fine (though still lazy) when these tests were the only user of this stub. However, the ps stub is about to be enhanced, so fix these uses of it to represent the intended usage. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/UNIT/eventscripts/05.system.monitor.015.sh | 2 +- ctdb/tests/UNIT/eventscripts/05.system.monitor.017.sh | 2 +- ctdb/tests/UNIT/eventscripts/05.system.monitor.018.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ctdb/tests/UNIT/eventscripts/05.system.monitor.015.sh b/ctdb/tests/UNIT/eventscripts/05.system.monitor.015.sh index 0091c429ac1..76b73a34284 100755 --- a/ctdb/tests/UNIT/eventscripts/05.system.monitor.015.sh +++ b/ctdb/tests/UNIT/eventscripts/05.system.monitor.015.sh @@ -14,7 +14,7 @@ set_mem_usage 90 90 required_result 1 <= threshold 85% $FAKE_PROC_MEMINFO -$(ps foobar) +$(ps auxfww) EOF simple_test diff --git a/ctdb/tests/UNIT/eventscripts/05.system.monitor.017.sh b/ctdb/tests/UNIT/eventscripts/05.system.monitor.017.sh index 8eef4afc85d..b2e50292a03 100755 --- a/ctdb/tests/UNIT/eventscripts/05.system.monitor.017.sh +++ b/ctdb/tests/UNIT/eventscripts/05.system.monitor.017.sh @@ -14,7 +14,7 @@ set_mem_usage 87 87 required_result 1 <= threshold 80% $FAKE_PROC_MEMINFO -$(ps foobar) +$(ps auxfww) EOF simple_test diff --git a/ctdb/tests/UNIT/eventscripts/05.system.monitor.018.sh b/ctdb/tests/UNIT/eventscripts/05.system.monitor.018.sh index cd9305f8826..427adc61eed 100755 --- a/ctdb/tests/UNIT/eventscripts/05.system.monitor.018.sh +++ b/ctdb/tests/UNIT/eventscripts/05.system.monitor.018.sh @@ -41,7 +41,7 @@ set_mem_usage 80 80 required_result 1 <= threshold 80% $FAKE_PROC_MEMINFO -$(ps foobar) +$(ps auxfww) EOF simple_test @@ -72,7 +72,7 @@ set_mem_usage 81 81 required_result 1 <= threshold 80% $FAKE_PROC_MEMINFO -$(ps foobar) +$(ps auxfww) EOF simple_test -- 2.47.3