summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/gvfs-test3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/gvfs-test b/test/gvfs-test
index 8b9e0284..73b4e2fb 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -69,7 +69,8 @@ have_httpd = httpd_cmd is not None
sshd_path = shutil.which('sshd')
local_ip = subprocess.check_output("ip -4 addr | sed -nr '/127\.0\.0/ n; "
- "/inet / { s/^.*inet ([0-9.]+).*$/\\1/; p; q }'",
+ "/inet / { s/^.*inet ([0-9.]+).*$/\\1/; p; q }'"
+ "| tr -d '\n'",
shell=True, universal_newlines=True)
SMB_USER_PORT = 1445