Skip to content

last: fix the tests that fail on Ubuntu 26.04 runners - #688

Open
mmclinton wants to merge 1 commit into
uutils:mainfrom
mmclinton:last-fixture-tests
Open

mmclinton wants to merge 1 commit into
uutils:mainfrom
mmclinton:last-fixture-tests

Conversation

@mmclinton

Copy link
Copy Markdown
Contributor

CI has failed on main and every PR since the ubuntu-latest runners moved to Ubuntu 26.04. On that image /var/log/wtmp holds no login records, so test_last, test_limit_arg and test_timestamp_format_short fail, and the full, iso and notime format tests pass without checking one. All six now read the last.input.1 fixture, which the --since, --until and --hostlast tests already use.

The Ubuntu failure has cancelled the macOS and Windows test jobs on every run since, so they get their first full run here.

@mmclinton mmclinton changed the title last: read the record tests from the fixture last: fix the tests that fail on Ubuntu 26.04 runners Nov 7, 2026
Six tests need login records and read them from the runner's
/var/log/wtmp. The ubuntu-latest runners moved to Ubuntu 26.04, where
that file holds none, so test_last, test_limit_arg and
test_timestamp_format_short have failed on every CI run since, and the
full, iso and notime format tests pass without checking a record. All
six now read last.input.1, which the --since, --until and --hostlast
tests already use, so they no longer depend on the host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant