summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2021-02-12 18:57:58 +1100
committerAmitay Isaacs <amitay@samba.org>2021-05-28 06:46:29 +0000
commita3e7fd9c61bf37de3d6952fa8c7134a4df0b9c6c (patch)
treeec24cf1c6c66c8d77cfa68a2d85d7705470b6499 /ctdb
parentffb56c9143d1d4b9a2dfaa8300be6ce5d6881ab1 (diff)
downloadsamba-a3e7fd9c61bf37de3d6952fa8c7134a4df0b9c6c.tar.gz
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 <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/UNIT/eventscripts/05.system.monitor.015.sh2
-rwxr-xr-xctdb/tests/UNIT/eventscripts/05.system.monitor.017.sh2
-rwxr-xr-xctdb/tests/UNIT/eventscripts/05.system.monitor.018.sh4
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 <<EOF
ERROR: System memory utilization 90% >= 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 <<EOF
ERROR: System memory utilization 87% >= 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 <<EOF
ERROR: System memory utilization 80% >= threshold 80%
$FAKE_PROC_MEMINFO
-$(ps foobar)
+$(ps auxfww)
EOF
simple_test
@@ -72,7 +72,7 @@ set_mem_usage 81 81
required_result 1 <<EOF
ERROR: System memory utilization 81% >= threshold 80%
$FAKE_PROC_MEMINFO
-$(ps foobar)
+$(ps auxfww)
EOF
simple_test