Disable logging to file during tests

Without this patch, salt-call emits warning when run as non-root:
[WARNING ] Failed to open log file, do you have permission to write to
/var/log/salt/minion

Change-Id: I333c4090f9e1edc6c826e7daf09b99344eb27fbd
This commit is contained in:
Simak, Jan 2016-06-23 13:49:53 +02:00
parent 8ae7d57714
commit 9106019292
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ SALT_PILLAR_DIR=${SALT_PILLAR_DIR:-${BUILDDIR}/pillar_root}
SALT_CONFIG_DIR=${SALT_CONFIG_DIR:-${BUILDDIR}/salt}
SALT_CACHE_DIR=${SALT_CACHE_DIR:-${SALT_CONFIG_DIR}/cache}
SALT_OPTS="${SALT_OPTS} --retcode-passthrough --local -c ${SALT_CONFIG_DIR}"
SALT_OPTS="${SALT_OPTS} --retcode-passthrough --local -c ${SALT_CONFIG_DIR} --log-file=/dev/null"
if [ "x${SALT_VERSION}" != "x" ]; then
PIP_SALT_VERSION="==${SALT_VERSION}"