]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: cope with uutils coreutils flag parsing for date command
authorNick Rosbrook <enr0n@ubuntu.com>
Mon, 19 Jan 2026 21:09:52 +0000 (16:09 -0500)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 20:05:57 +0000 (20:05 +0000)
commitda07a8a9b108bfb1eb46a07d70a078ad9a7585e9
treeca105df685d44356da71325c76eef1ee8771cccc
parent10ba7735a57a7f4264e515900be3fefb2240c809
test: cope with uutils coreutils flag parsing for date command

With GNU coreutils, one can pass an argument to the "set" flag like:

 date -s "-3 days"

With uutils coreutils, that gives an error:

 error: unexpected argument '-3' found
    tip: to pass '-3' as a value, use '-- -3'

That's a bug (https://github.com/uutils/coreutils/issues/9679), but both
implementations accept --set="-3 days" just fine, so use that instead.

(cherry picked from commit 9dcfd6e8fe080f959c363e6d896848faeb1b8156)
(cherry picked from commit a45dad1aa5320443a520a47c8c9dd89703b73d2f)
(cherry picked from commit b9e718293142a2b54d801835c6b43b4a88fab193)
test/units/TEST-53-TIMER.RandomizedDelaySec-reload.sh
test/units/TEST-53-TIMER.issue-16347.sh
test/units/TEST-53-TIMER.restart-trigger.sh