HomeClusterLabs Projects
Diffusion Booth 462f1916ed83

test: Allow test running as a root

Description

test: Allow test running as a root

The main problem was hidden in inability of booth daemon to delete its
lock file because of directory permisions.

Tests creates temp directory as a root but booth daemon drops
privilegies right after creating the lock file.
So booth daemon can ftruncate lock file, but not delete it.

There seems to be two possible solutions:

  • Fix test so empty lock file is considered as deleted lock file
  • Change permissions of created temp directory

This patch implements later solution.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>

Details

Provenance
jfriesseAuthored on May 4 2020, 2:56 AM
Parents
rBfb4a515dd3f2: Test: *.py: superprivileged user can run the tests when opted in
Branches
Unknown
Tags
Unknown

Event Timeline