1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

chromeos_test_image: only set default password if keyfile was not specified

This commit is contained in:
Sergei Trofimov 2015-06-18 08:39:02 +01:00
parent 0b29bda206
commit 9470efe410

View File

@ -42,12 +42,15 @@ class ChromeOsDevice(LinuxDevice):
Parameter('core_names', default=[], override=True),
Parameter('core_clusters', default=[], override=True),
Parameter('username', default='root', override=True),
Parameter('password', default='test0000', override=True),
Parameter('password_prompt', default='Password:', override=True),
Parameter('binaries_directory', default='/usr/local/bin', override=True),
Parameter('working_directory', default='/home/root/wa-working', override=True),
]
def validate(self):
if self.password is None and not self.keyfile:
self.password = 'test0000'
def initialize(self, context, *args, **kwargs):
if self.busybox == 'busybox':
self.logger.debug('Busybox already installed on the device: replacing with wa version')