Skip to content

Commit 284d507

Browse files
committed
restoring shell tests by splitting command into two
1 parent 3b0b39e commit 284d507

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/command-line.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,20 @@ set -e
99
../target/debug/sonar ps --exclude-users=root,$LOGNAME > /dev/null
1010
../target/debug/sonar ps --exclude-users root,$LOGNAME > /dev/null
1111

12-
# Allow all these arguments
12+
# Test all arguments in combination with --batchless
1313
../target/debug/sonar ps \
1414
--batchless \
15+
--min-cpu-percent 0.5 \
16+
--min-mem-percent 1.8 \
17+
--min-cpu-time 10 \
18+
--exclude-system-jobs \
19+
--exclude-users root \
20+
--exclude-commands emacs \
21+
--lockdir . \
22+
> /dev/null
23+
24+
# Test all arguments in combination with --rollup
25+
../target/debug/sonar ps \
1526
--rollup \
1627
--min-cpu-percent 0.5 \
1728
--min-mem-percent 1.8 \

0 commit comments

Comments
 (0)