diff options
Diffstat (limited to 'test/test-execute/exec-oomscoreadjust-positive.service')
-rw-r--r-- | test/test-execute/exec-oomscoreadjust-positive.service | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-execute/exec-oomscoreadjust-positive.service b/test/test-execute/exec-oomscoreadjust-positive.service index e47a4f1392..456a8f80cf 100644 --- a/test/test-execute/exec-oomscoreadjust-positive.service +++ b/test/test-execute/exec-oomscoreadjust-positive.service @@ -2,6 +2,6 @@ Description=Test for OOMScoreAdjust [Service] -ExecStart=/bin/bash -c 'c=$(cat /proc/self/oom_score_adj); echo $c; exit $(test $c -eq 100)' -OOMScoreAdjust=100 +ExecStart=/bin/sh -x -c 'c=$$(cat /proc/self/oom_score_adj); test "$$c" -eq 100' Type=oneshot +OOMScoreAdjust=100 |