Tests: Avoid failure in attempting to add existing tlog user

This commit is contained in:
Justin Stephenson 2019-07-18 12:00:50 -04:00
parent 142dd4fb6a
commit fa691ce201

View file

@ -122,7 +122,7 @@ rpm: dist-gzip cockpit-$(PACKAGE_NAME).spec
$(VM_IMAGE): rpm bots
rm -f $(VM_IMAGE) $(VM_IMAGE).qcow2
bots/image-customize -v -i cockpit -i `pwd`/cockpit-$(PACKAGE_NAME)-*.noarch.rpm -s $(CURDIR)/test/vm.install $(TEST_OS)
bots/image-customize -v -r "useradd tlog && usermod -u 981 tlog" $(TEST_OS)
bots/image-customize -v -r "usermod -u 981 tlog || true" $(TEST_OS)
bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.journal $(TEST_OS)
# convenience target for the above