Public bug reported:

Full log: https://autopkgtest.ubuntu.com/results/autopkgtest-
resolute/resolute/amd64/s/systemd/20251216_115139_34c51@/log.gz

Relevant output:

3739s ――――――――――――――――――――――――――――――――――――― ✀  
―――――――――――――――――――――――――――――――――――――
3739s Listing only the last 100 lines from a long log.
3739s [    7.989051] TEST-53-TIMER.sh[483]: + at_exit
3739s [    7.989264] TEST-53-TIMER.sh[483]: + : 'Restore the system date to a 
sane state'
3739s [    7.989924] TEST-53-TIMER.sh[633]: ++ cut -d . -f 1 /proc/uptime
3739s [    7.992385] TEST-53-TIMER.sh[483]: + END_MONOTONIC=7
3739s [    7.992594] TEST-53-TIMER.sh[483]: + date --set=@1765884855
3739s [    7.996178] TEST-53-TIMER.sh[387]: + _PASSED_TESTS+=("$subtest")
3739s [    7.996390] TEST-53-TIMER.sh[387]: + : '--- 
/usr/lib/systemd/tests/testdata/units/TEST-53-TIMER.RandomizedDelaySec-reload.sh
 END (0s) ---'
3739s [    7.996614] TEST-53-TIMER.sh[387]: + for subtest in "${subtests[@]}"
3739s [    7.996796] TEST-53-TIMER.sh[387]: + [[ -n '' ]]
3739s [    7.996969] TEST-53-TIMER.sh[387]: + : '--- 
/usr/lib/systemd/tests/testdata/units/TEST-53-TIMER.issue-16347.sh BEGIN ---'
3739s [    7.997189] TEST-53-TIMER.sh[387]: + SECONDS=0
3739s [    7.997333] TEST-53-TIMER.sh[387]: + 
.//usr/lib/systemd/tests/testdata/units/TEST-53-TIMER.issue-16347.sh
3739s [    8.000429] TEST-53-TIMER.sh[636]: + set -o pipefail
3739s [    8.000647] TEST-53-TIMER.sh[636]: + date -s '-3 days'
3739s [    8.002548] TEST-53-TIMER.sh[638]: error: unexpected argument '-3' 
found
3739s [    8.002742] TEST-53-TIMER.sh[638]:   tip: to pass '-3' as a value, use 
'-- -3'
3739s [    8.002931] TEST-53-TIMER.sh[638]: Usage: date [OPTION]... [+FORMAT]...
3739s [    8.003087] TEST-53-TIMER.sh[638]:        date [OPTION]... 
[MMDDhhmm[[CC]YY][.ss]]
3739s [    8.003308] TEST-53-TIMER.sh[638]:        
3739s [    8.003484] TEST-53-TIMER.sh[638]:        FORMAT controls the output.  
Interpreted sequences are:
3739s [    8.003638] TEST-53-TIMER.sh[638]:        | Sequence | Description     
                                                     | Example                |
3739s [    8.003819] TEST-53-TIMER.sh[638]:        | -------- | 
-------------------------------------------------------------------- | 
---------------------- |
3739s [    8.003981] TEST-53-TIMER.sh[638]:        | %%       | a literal %     
                                                     | %                      |
3739s [    8.004175] TEST-53-TIMER.sh[638]:        | %a       | locale's 
abbreviated weekday name                                    | Sun               
     |
3739s [    8.004363] TEST-53-TIMER.sh[638]:        | %A       | locale's full 
weekday name                                           | Sunday                 
|
3739s [    8.004502] TEST-53-TIMER.sh[638]:        | %b       | locale's 
abbreviated month name                                      | Jan               
     |
3739s [    8.004663] TEST-53-TIMER.sh[638]:        | %B       | locale's full 
month name                                             | January                
|
3739s [    8.004842] TEST-53-TIMER.sh[638]:        | %c       | locale's date 
and time                                               | Thu Mar 3 23:05:25 
2005|
3739s [    8.005087] TEST-53-TIMER.sh[638]:        | %C       | century; like 
%Y, except omit last two digits                        | 20                     
|
3739s [    8.005255] TEST-53-TIMER.sh[638]:        | %d       | day of month    
                                                     | 01                     |
3739s [    8.005439] TEST-53-TIMER.sh[638]:        | %D       | date; same as 
%m/%d/%y                                               | 12/31/99               
|
3739s [    8.005528] TEST-53-TIMER.sh[638]:        | %e       | day of month, 
space padded; same as %_d                              | 3                      
|
3739s [    8.005738] TEST-53-TIMER.sh[638]:        | %F       | full date; same 
as %Y-%m-%d                                          | 2005-03-03             |
3739s [    8.005926] TEST-53-TIMER.sh[638]:        | %g       | last two digits 
of year of ISO week number (see %G)                  | 05                     |
3739s [    8.006124] TEST-53-TIMER.sh[638]:        | %G       | year of ISO 
week number (see %V); normally useful only with %V       | 2005                 
  |
3739s [    8.006379] TEST-53-TIMER.sh[638]:        | %h       | same as %b      
                                                     | Jan                    |
3739s [    8.006560] TEST-53-TIMER.sh[638]:        | %H       | hour (00..23)   
                                                     | 23                     |
3739s [    8.006727] TEST-53-TIMER.sh[638]:        | %I       | hour (01..12)   
                                                     | 11                     |
3739s [    8.006898] TEST-53-TIMER.sh[638]:        | %j       | day of year 
(001..366)                                               | 062                  
  |
3739s [    8.007079] TEST-53-TIMER.sh[638]:        | %k       | hour, space 
padded ( 0..23); same as %_H                             |  3                   
  |
3739s [    8.007241] TEST-53-TIMER.sh[638]:        | %l       | hour, space 
padded ( 1..12); same as %_I                             |  9                   
  |
3739s [    8.007411] TEST-53-TIMER.sh[638]:        | %m       | month (01..12)  
                                                     | 03                     |
3739s [    8.007571] TEST-53-TIMER.sh[638]:        | %M       | minute (00..59) 
                                                     | 30                     |
3739s [    8.007703] TEST-53-TIMER.sh[638]:        | %n       | a newline       
                                                     | \n                     |
3739s [    8.007892] TEST-53-TIMER.sh[638]:        | %N       | nanoseconds 
(000000000..999999999)                                   | 123456789            
  |
3739s [    8.008080] TEST-53-TIMER.sh[638]:        | %p       | locale's 
equivalent of either AM or PM; blank if not known           | PM                
     |
3739s [    8.008268] TEST-53-TIMER.sh[638]:        | %P       | like %p, but 
lower case                                              | pm                    
 |
3739s [    8.008450] TEST-53-TIMER.sh[638]:        | %q       | quarter of year 
(1..4)                                               | 1                      |
3739s [    8.008613] TEST-53-TIMER.sh[638]:        | %r       | locale's 
12-hour clock time                                          | 11:11:04 PM       
     |
3739s [    8.008783] TEST-53-TIMER.sh[638]:        | %R       | 24-hour hour 
and minute; same as %H:%M                               | 23:30                 
 |
3739s [    8.008948] TEST-53-TIMER.sh[638]:        | %s       | seconds since 
1970-01-01 00:00:00 UTC                                | 1615432800             
|
3739s [    8.009157] TEST-53-TIMER.sh[638]:        | %S       | second (00..60) 
                                                     | 30                     |
3739s [    8.009455] TEST-53-TIMER.sh[638]:        | %t       | a tab           
                                                     | \t                     |
3739s [    8.009629] TEST-53-TIMER.sh[638]:        | %T       | time; same as 
%H:%M:%S                                               | 23:30:30               
|
3739s [    8.009807] TEST-53-TIMER.sh[638]:        | %u       | day of week 
(1..7); 1 is Monday                                      | 4                    
  |
3739s [    8.009971] TEST-53-TIMER.sh[638]:        | %U       | week number of 
year, with Sunday as first day of week (00..53)       | 10                     |
3739s [    8.010168] TEST-53-TIMER.sh[638]:        | %V       | ISO week 
number, with Monday as first day of week (01..53)           | 12                
     |
3739s [    8.010330] TEST-53-TIMER.sh[638]:        | %w       | day of week 
(0..6); 0 is Sunday                                      | 4                    
  |
3739s [    8.010477] TEST-53-TIMER.sh[638]:        | %W       | week number of 
year, with Monday as first day of week (00..53)       | 11                     |
3739s [    8.010641] TEST-53-TIMER.sh[638]:        | %x       | locale's date 
representation                                         | 03/03/2005             
|
3739s [    8.010804] TEST-53-TIMER.sh[638]:        | %X       | locale's time 
representation                                         | 23:30:30               
|
3739s [    8.010971] TEST-53-TIMER.sh[638]:        | %y       | last two digits 
of year (00..99)                                     | 05                     |
3739s [    8.011198] TEST-53-TIMER.sh[638]:        | %Y       | year            
                                                     | 2005                   |
3739s [    8.011377] TEST-53-TIMER.sh[638]:        | %z       | +hhmm numeric 
time zone                                              | -0400                  
|
3739s [    8.011527] TEST-53-TIMER.sh[638]:        | %:z      | +hh:mm numeric 
time zone                                             | -04:00                 |
3739s [    8.011673] TEST-53-TIMER.sh[638]:        | %::z     | +hh:mm:ss 
numeric time zone                                          | -04:00:00          
    |
3739s [    8.011843] TEST-53-TIMER.sh[638]:        | %:::z    | numeric time 
zone with : to necessary precision                      | -04, +05:30           
 |
3739s [    8.011978] TEST-53-TIMER.sh[638]:        | %Z       | alphabetic time 
zone abbreviation                                    | EDT                    |
3739s [    8.012191] TEST-53-TIMER.sh[638]:        
3739s [    8.012418] TEST-53-TIMER.sh[638]:        By default, date pads 
numeric fields with zeroes.
3739s [    8.012586] TEST-53-TIMER.sh[638]:        The following optional flags 
may follow '%':
3739s [    8.012718] TEST-53-TIMER.sh[638]:        * `-` (hyphen) do not pad 
the field
3739s [    8.013037] TEST-53-TIMER.sh[638]:        * `_` (underscore) pad with 
spaces
3739s [    8.013218] TEST-53-TIMER.sh[638]:        * `0` (zero) pad with zeros
3739s [    8.013394] TEST-53-TIMER.sh[638]:        * `^` use upper case if 
possible
3739s [    8.013538] TEST-53-TIMER.sh[638]:        * `#` use opposite case if 
possible
3739s [    8.013744] TEST-53-TIMER.sh[638]:        After any flags comes an 
optional field width, as a decimal number;
3739s [    8.013916] TEST-53-TIMER.sh[638]:        then an optional modifier, 
which is either
3739s [    8.014111] TEST-53-TIMER.sh[638]:        * `E` to use the locale's 
alternate representations if available, or
3739s [    8.014274] TEST-53-TIMER.sh[638]:        * `O` to use the locale's 
alternate numeric symbols if available.
3739s [    8.014463] TEST-53-TIMER.sh[638]:        Examples:
3739s [    8.014626] TEST-53-TIMER.sh[638]:          Convert seconds since the 
epoch (1970-01-01 UTC) to a date
3739s [    8.014798] TEST-53-TIMER.sh[638]:        
3739s [    8.014962] TEST-53-TIMER.sh[638]:          date --date='@2147483647'
3739s [    8.015160] TEST-53-TIMER.sh[638]:        
3739s [    8.015325] TEST-53-TIMER.sh[638]:          Show the time on the west 
coast of the US (use tzselect(1) to find TZ)
3739s [    8.015522] TEST-53-TIMER.sh[638]:        
3739s [    8.015682] TEST-53-TIMER.sh[638]:          TZ='America/Los_Angeles' 
date
3739s [    8.015852] TEST-53-TIMER.sh[638]: For more information, try '--help'.
3739s [    8.016172] TEST-53-TIMER.sh[387]: + echo 'Subtest 
/usr/lib/systemd/tests/testdata/units/TEST-53-TIMER.issue-16347.sh failed'
3739s [    8.016366] TEST-53-TIMER.sh[387]: Subtest 
/usr/lib/systemd/tests/testdata/units/TEST-53-TIMER.issue-16347.sh failed
3739s [    8.016536] TEST-53-TIMER.sh[387]: + return 1

--------------


This is due to rust-coreutils handling of `-s` as opposed to GNU coreutils. 
But, both tools handle this correctly if `--set='-3 days'` is used instead.

** Affects: systemd (Ubuntu)
     Importance: Medium
     Assignee: Nick Rosbrook (enr0n)
         Status: Triaged


** Tags: dcr-incoming update-excuse

** Tags added: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136408

Title:
  systemd: TEST-53-TIMER fails in resolute

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2136408/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to