[gvfs] test: Use explicitely SMB_USER_PORT when mounting
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] test: Use explicitely SMB_USER_PORT when mounting
- Date: Fri, 11 May 2018 12:02:05 +0000 (UTC)
commit a0baebed4f614da133e5bb01fdb1400c15437cea
Author: Ondrej Holy <oholy redhat com>
Date: Fri May 11 13:27:53 2018 +0200
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.
test/gvfs-test | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test/gvfs-test b/test/gvfs-test
index 11fc035..1bf29d6 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]