Skip to content

Commit

Permalink
systemtest: fix pam test options
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri committed Jul 26, 2022
1 parent 7b06012 commit 276e6ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions systemtests/tests/bconsole-pam/testrunner
Expand Up @@ -55,14 +55,12 @@ if [ -n "$libasan" ]; then
fi

output=/dev/null
BAREOS_DIR_OPTIONS=""
if is_debug; then
export PAM_WRAPPER_DEBUGLEVEL=4
BAREOS_DIR_OPTIONS="-d 200"
output=/dev/stdout
LD_PRELOAD="${preload_libs}" "${BAREOS_DIRECTOR_BINARY}" -c "${conf}" -f "${BAREOS_DIR_OPTIONS}" >$output 2>&1 &
LD_PRELOAD="${preload_libs}" "${BAREOS_DIRECTOR_BINARY}" -c "${conf}" -f -d 200 >$output 2>&1 &
else
LD_PRELOAD="${preload_libs}" "${BAREOS_DIRECTOR_BINARY}" -c "${conf}" -f >$output 2>&1 &
LD_PRELOAD="${preload_libs}" "${BAREOS_DIRECTOR_BINARY}" -c "${conf}" -f >$output 2>&1 &
fi

sleep 1
Expand Down
6 changes: 2 additions & 4 deletions systemtests/tests/python-pam/testrunner
Expand Up @@ -55,14 +55,12 @@ if [ -n "$libasan" ]; then
fi

output=/dev/null
BAREOS_DIR_OPTIONS=""
if is_debug; then
export PAM_WRAPPER_DEBUGLEVEL=4
BAREOS_DIR_OPTIONS="-d 200"
output=/dev/stdout
LD_PRELOAD="${preload_libs}" "${BAREOS_DIRECTOR_BINARY}" -c "${conf}" -f "${BAREOS_DIR_OPTIONS}" >$output 2>&1 &
LD_PRELOAD="${preload_libs}" "${BAREOS_DIRECTOR_BINARY}" -c "${conf}" -f -d 200 >$output 2>&1 &
else
LD_PRELOAD="${preload_libs}" "${BAREOS_DIRECTOR_BINARY}" -c "${conf}" -f >$output 2>&1 &
LD_PRELOAD="${preload_libs}" "${BAREOS_DIRECTOR_BINARY}" -c "${conf}" -f >$output 2>&1 &
fi

# make sure, director is up and running.
Expand Down

0 comments on commit 276e6ca

Please sign in to comment.