Skip to content

Commit 2476c21

Browse files
authored
Merge pull request #32812 from DaanDeMeyer/test
test: Only add tpm2.target dependency to TEST-70-TPM2.service
2 parents 0263816 + aaebebb commit 2476c21

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

test/TEST-64-UDEV-STORAGE/virtio_scsi_identically_named_partitions.configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ num_disk = 16
2020
config["QemuArgs"] += ["-device", "virtio-scsi-pci,id=scsi0,num_queues=4"]
2121

2222
for i in range(0, num_disk):
23-
id = f"drivenamedpart{i}"
23+
id = f"drive{i}"
2424
config["QemuDrives"] += [
2525
{
2626
"Id": id,

test/TEST-70-TPM2/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
integration_tests += [
44
integration_test_template + {
55
'name' : fs.name(meson.current_source_dir()),
6+
'configuration' : integration_test_template['configuration'] + {
7+
'wants' : '@0@ tpm2.target'.format(integration_test_template['configuration']['wants']),
8+
'after' : '@0@ tpm2.target'.format(integration_test_template['configuration']['after']),
9+
},
610
},
711
]

test/meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ integration_test_template = {
286286
'configuration' : {
287287
'memory-accounting' : 'no',
288288
'command' : testdata_dir / 'units/%N.sh',
289+
'wants' : '',
290+
'after' : '',
289291
},
290292
'cmdline' : [],
291293
}

test/test.service.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# SPDX-License-Identifier: LGPL-2.1-or-later
22
[Unit]
33
Description=%N
4-
Wants=basic.target network.target tpm2.target multi-user.target [email protected]
5-
After=basic.target network.target tpm2.target [email protected]
4+
Wants=basic.target network.target multi-user.target [email protected] @wants@
5+
After=basic.target network.target [email protected] @after@
66
Before=getty-pre.target
77

88
[Service]

test/units/TEST-64-UDEV-STORAGE.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ testcase_virtio_scsi_identically_named_partitions() {
250250
fi
251251

252252
for ((i = 0; i < num_disk; i++)); do
253-
sfdisk "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drivenamedpart$i" <<EOF
253+
sfdisk "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive$i" <<EOF
254254
label: gpt
255255
256256
$(for ((j = 1; j <= num_part; j++)); do echo 'name="Hello world", size=2M'; done)

0 commit comments

Comments
 (0)