File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Tests/iaas/scs_0101_entropy Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3232
3333TIMEOUT = 5 * 60 # timeout in seconds after which we no longer wait for the VM to complete the run
3434MARKER = '_scs-test-'
35+ # NOTE we mask [email protected] because the login prompt messes up the console output that we want to parse 3536SERVER_USERDATA_GENERIC = """
3637#cloud-config
3738# apt-placeholder
3839packages:
3940 - rng-tools5
41+ bootcmd:
42+ - systemctl mask [email protected] 4043runcmd:
4144 - echo '_scs-test-entropy-avail'; cat /proc/sys/kernel/random/entropy_avail
4245 - echo '_scs-test-fips-test'; cat /dev/random | rngtest -c 1000
5457 'debian' : SERVER_USERDATA_GENERIC .replace ('# apt-placeholder' , """apt:
5558 primary:
5659 - arches: [default]
57- uri: https://mirror.plusserver.com/debian/debian/""" ),
60+ uri: https://mirror.plusserver.com/debian/debian/
61+ security:
62+ - arches: [default]
63+ uri: https://mirror.plusserver.com/debian/debian-security/""" ),
5864}
5965
6066
@@ -334,6 +340,8 @@ def compute_canonical_image(all_images):
334340def _convert_to_collected (lines , marker = MARKER ):
335341 # parse lines from console output
336342 # removing any "indent", stuff that looks like '[ 70.439502] cloud-init[513]: '
343+ # NOTE this logic can fail when something (such as a login prompt) messes up the console output
344+ # therefore we disable the corresponding service (see cloud-init)
337345 section = None
338346 indent = 0
339347 collected = {}
You can’t perform that action at this time.
0 commit comments