summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-02-19 11:35:20 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-02-19 11:39:56 +0000
commitd0f2985ff1546f4d223fb4c52cf8bc297a19af03 (patch)
tree6481b226d1d9e95f314054e6769f09fc6ef4abbd /config.py
parent2f8e5403cd21d18e14eedf124bd2270516dcac61 (diff)
downloadsystem-tests-d0f2985ff1546f4d223fb4c52cf8bc297a19af03.tar.gz
Remove vm_name parameter and set it as config.DEPLOY_NAME instead
Diffstat (limited to 'config.py')
-rw-r--r--config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.py b/config.py
index e53b66a..07ee819 100644
--- a/config.py
+++ b/config.py
@@ -16,6 +16,7 @@
'''Baserock system-test configuration.'''
import os
+import socket
# The test host must have passwordless access to this machine. The tests set
# set StrictHostKeyChecking=no for SSH connections so it does not need to be in
@@ -23,6 +24,9 @@ import os
DEPLOY_URL = 'kvm+ssh://sam@landfill.ducie.codethink.co.uk/'
DEPLOY_PATH = '/home/VIRT-IMAGES/'
+# This is the hostname and VM name of the machine that gets deployed.
+DEPLOY_NAME = 'brtests-%s' % (socket.gethostname())
+
# Seconds to wait for machine to appear on network before assuming it didn't
# boot or connect to network successfully.
BOOT_TIMEOUT=20