diff options
author | Ondrej Holy <oholy@redhat.com> | 2018-05-11 13:27:53 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2018-05-11 14:00:47 +0200 |
commit | a0baebed4f614da133e5bb01fdb1400c15437cea (patch) | |
tree | 4dec727baf8b819359a84855e36d797819fec7cf /test | |
parent | 9bf1a008b9c103be49eb750ca3625d628e25ab32 (diff) | |
download | gvfs-a0baebed4f614da133e5bb01fdb1400c15437cea.tar.gz |
test: Use explicitely SMB_USER_PORT when mounting
Currently, SMB_USER_PORT is not used when mounting, which may cause
failures for smb tests, when other smbd instances are running. Let's
use the user port also when mounting to fix the failures.
Diffstat (limited to 'test')
-rwxr-xr-x | test/gvfs-test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gvfs-test b/test/gvfs-test index 11fc0350..1bf29d68 100755 --- a/test/gvfs-test +++ b/test/gvfs-test @@ -839,7 +839,7 @@ ncalrpc dir = %(workdir)s/samba def test_anonymous(self): '''smb:// anonymous''' - uri = 'smb://%s/public' % os.uname()[1] + uri = 'smb://%s:%d/public' % (os.uname()[1], SMB_USER_PORT) # ensure that this does not ask for any credentials mount = subprocess.Popen(['gio', 'mount', '-a', uri]) @@ -860,7 +860,7 @@ ncalrpc dir = %(workdir)s/samba def test_authenticated(self): '''smb:// authenticated''' - uri = 'smb://%s@%s/private' % (os.environ['USER'], os.uname()[1]) + uri = 'smb://%s@%s:%d/private' % (os.environ['USER'], os.uname()[1], SMB_USER_PORT) mount = subprocess.Popen(['gio', 'mount', uri], stdin=subprocess.PIPE, stdout=subprocess.PIPE, |