summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-tests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index a6723fc9f..795c67886 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -250,7 +250,7 @@ function simpletest_script_init() {
// Get url from arguments.
if (!empty($args['url'])) {
$parsed_url = parse_url($args['url']);
- $host = $parsed_url['host'];
+ $host = $parsed_url['host'] . (isset($parsed_url['port']) ? ':' . $parsed_url['port'] : '');
$path = $parsed_url['path'];
}