]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/test-execute/exec-ioschedulingclass-realtime.service
test-execute: Fix systemd escaping and shell issues
[thirdparty/systemd.git] / test / test-execute / exec-ioschedulingclass-realtime.service
index 74936d80798baef2a6b232d9dc89bfd05acdf65f..d920d5c687396ada38382e927bcd06d8c848c158 100644 (file)
@@ -2,6 +2,6 @@
 Description=Test for IOSchedulingClass=realtime
 
 [Service]
-ExecStart=/bin/bash -c 'c=$(ionice); echo $c; [[ "$c" == realtime* ]]'
+ExecStart=/bin/sh -x -c 'c=$$(LC_ALL=C ionice); test "$${c%%:*}" = "realtime"'
 Type=oneshot
 IOSchedulingClass=realtime