]> 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)
committerNick Rosbrook <enr0n@ubuntu.com>
Fri, 30 Jan 2026 14:30:20 +0000 (09:30 -0500)
commit9dcfd6e8fe080f959c363e6d896848faeb1b8156
treeb65d07372e3628bf6f73c81d4ca4b3013d829eb7
parenta8efad14f878a5ea0d566fd61bda8e0bb332ae7d
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.
test/units/TEST-53-TIMER.RandomizedDelaySec-reload.sh
test/units/TEST-53-TIMER.issue-16347.sh
test/units/TEST-53-TIMER.restart-trigger.sh