Skip to content

testsuite:ps: etime/ELAPSED doesn't match full format

Lukas requested to merge slyon/procps:test-ps-etime into master

According to the manpage on Ubuntu 23.10 the etime/ELAPSED output can take the following format:

elapsed time since the process was started, in the form [[DD-]hh:]mm:ss.

We're not currently accouting for the [DD-] part, which makes this test fail inside an Ubuntu 24.04 LXD container running on a Ubuntu 23.10 host.

$ lxc shell nn
root@nn:~# ps -o bsdtime,cputime,etime,etimes
  TIME     TIME     ELAPSED ELAPSED
  0:00 00:00:00 441077220-02:35:44 4121967232
  0:00 00:00:00 441077220-02:35:44 4121967232
  0:00 00:00:00 441077220-02:35:12 4121967200

This seems to be a similiar regex mismatching issue as !170 (merged)

Merge request reports