Skip to content

Commit

Permalink
test: fix test_kernel_command_line_match (canonical#5529)
Browse files Browse the repository at this point in the history
Adapt to conform with 7703634
  • Loading branch information
aciba90 committed Jul 22, 2024
1 parent 49edfe5 commit d9fc336
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/integration_tests/test_kernel_command_line_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(
(
"ds=nocloud;s=http://my-url/;h=hostname",
"DataSourceNoCloud [seed=None][dsmode=net]",
"DataSourceNoCloud",
True,
),
("ci.ds=openstack", "DataSourceOpenStack", True),
Expand All @@ -49,16 +49,15 @@ def test_lxd_datasource_kernel_override(
override_kernel_command_line(ds_str, client)
if cmdline_configured:
assert (
"Machine is configured by the kernel command line to run on single"
"Kernel command line set to use a single"
f" datasource {configured}"
) in client.execute("cat /var/log/cloud-init.log")
else:
# verify that no plat
log = client.execute("cat /var/log/cloud-init.log")
assert (f"Detected platform: {configured}") in log
assert (f"Detected {configured}") in log
assert (
"Machine is configured by the kernel "
"command line to run on single "
"Kernel command line set to use a single"
) not in log


Expand Down

0 comments on commit d9fc336

Please sign in to comment.