git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/1] maintenance: fix test t7900-maintenance.sh

From
Lénaïc Huard <lenaic@lhuard.fr>
Date
Sep 27, 2021, 21:30 UTC
Message-ID
<20210927213016.21714-1-lenaic@lhuard.fr>

The test t7900-maintenance.sh seems to be currently broken on the master branch on some platforms. Since commit b681b191, one of the test leverages `systemd-analyze verify` utility to check the correctness of systemd unit files generated by git.

But, whereas it works on Arch Linux with a recent version of systemd, it fails on Ubuntu 18.04 and systemd 237 with this error [1]:

  Failed to create /user.slice/user-1000.slice/session-44.scope/init.scope control group: Permission denied
  Failed to initialize manager: Permission denied
It also fails on CentOS 7.9 and systemd 219 with this error [2]:
    Failed to open /dev/tty0: Permission denied
    Failed to load systemd/user/git-maintenance@.service: Invalid argument

This patch changes the prerequisite used in the test to check if `system-analyze verify` can be used. As a result, this step should be now skipped on the two above-mentioned platforms instead of making the test fail.

[1] https://lore.kernel.org/git/4c0c1fd4-f3f4-5e3a-abd2-0350c18b18b7@gmail.com/ [2] https://lore.kernel.org/git/874ka618n4.fsf@evledraar.gmail.com/

Lénaïc Huard (1):
  maintenance: fix test t7900-maintenance.sh
 t/t7900-maintenance.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
-- 
2.33.0
Next: Lénaïc Huard
Message 1 of 2 in “maintenance: fix test t7900-maintenance.sh”
  1. 0/1 maintenance: fix test t7900-maintenance.shLénaïc Huard, Sep 27, 2021
  2. 1/1 maintenance: fix test t7900-maintenance.shLénaïc Huard, Sep 27, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.