1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/selftest/test_samba3dump.sh
Noel Power 15b2ab04b7 s4/scripting: PY3 Ensure python scripts are run with correct python ver.
As part of port samba4.blackbox.samba3dump to python2/3
make sure test_samba3dump.sh runs samba3dump with $PYTHON which should
define the correct python version.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-10-23 05:50:25 +02:00

15 lines
295 B
Bash
Executable File

#!/bin/sh
# Verify that samba3dump completes.
. testprogs/blackbox/subunit.sh
subunit_start_test samba3dump
SRCDIR=`dirname $0`/../..
if $PYTHON $SRCDIR/source4/scripting/bin/samba3dump $SRCDIR/testdata/samba3; then
subunit_pass_test samba3dump
else
echo | subunit_fail_test samba3dump
fi