s3:tests: Create a test directory for a clean test
authorAndreas Schneider <asn@samba.org>
Tue, 4 Apr 2017 09:07:36 +0000 (11:07 +0200)
committerJeremy Allison <jra@samba.org>
Sat, 8 Apr 2017 10:29:19 +0000 (12:29 +0200)
commita9bd9a143e6f76dcef011399433b7b779f1ed2e5
tree1359e1b7bd60fa230116b48c127ed77e018ca102
parent5b4a1b628ecf533374f57c8cdda8fc0f9f38d496
s3:tests: Create a test directory for a clean test

The test fails on openSUSE Tumbleweed with:

NT_STATUS_FILE_IS_A_DIRECTORY opening remote file \foo\bar\testfile

This cleans up the code to create a directory 'test' which can be
completely removed so nothing will stay behind. It also makes sure that
all parent directories are created and the files have some content.

https://bugzilla.samba.org/show_bug.cgi?id=12721

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Apr  8 12:29:19 CEST 2017 on sn-devel-144
source3/script/tests/test_smbclient_s3.sh