commandtest: Remove commandhelper.log in test27

The recently added test27 spawns commandhelper. This is fine,
except, one of the things that commandhelper does is it records
arguments it was spawn with into commandhelper.log. Other test
cases then use checkoutput() to compare the arguments against the
expected ones and also unlink() the log file. However, test27()
is not doing that and thus it leaves the file behind. This
breaks distcheck.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Michal Privoznik 2019-07-29 16:11:29 +02:00
parent adf50b57bd
commit 019911339b
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,20 @@
ARG:--readfd
ARG:5
ARG:--readfd
ARG:7
ENV:DISPLAY=:0.0
ENV:HOME=/home/test
ENV:HOSTNAME=test
ENV:LANG=C
ENV:LOGNAME=test
ENV:PATH=/usr/bin:/bin
ENV:TMPDIR=/tmp
ENV:USER=test
FD:0
FD:1
FD:2
FD:5
FD:7
DAEMON:no
CWD:/tmp
UMASK:0022

View File

@ -1231,6 +1231,9 @@ static int test27(const void *unused ATTRIBUTE_UNUSED)
goto cleanup;
}
if (checkoutput("test27", NULL) < 0)
goto cleanup;
ret = 0;
cleanup: