Skip to content

Commit 024b44e

Browse files
authored
Merge branch 'main' into feat/curr-cpu-and-gpu-202510
2 parents 77e29c9 + d362fc9 commit 024b44e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Tests/iaas/scs_0101_entropy/entropy_check.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@
3232

3333
TIMEOUT = 5 * 60 # timeout in seconds after which we no longer wait for the VM to complete the run
3434
MARKER = '_scs-test-'
35+
# NOTE we mask [email protected] because the login prompt messes up the console output that we want to parse
3536
SERVER_USERDATA_GENERIC = """
3637
#cloud-config
3738
# apt-placeholder
3839
packages:
3940
- rng-tools5
41+
bootcmd:
42+
- systemctl mask [email protected]
4043
runcmd:
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
@@ -54,7 +57,10 @@
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):
334340
def _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 = {}

0 commit comments

Comments
 (0)