Skip to content

Commit 83bb871

Browse files
committed
squash: remove redundant
1 parent 0d65e4e commit 83bb871

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/provision/container/device/data/main.fmf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/plan-base:
1+
/plan:
22
summary: Base plan for container tests
33
provision:
44
how: container
55
image: fedora
66
execute:
77
how: tmt
88

9-
/plan-with-random:
9+
/with-random:
1010
summary: Test container provisioning with random device access
1111
discover:
1212
how: shell
@@ -22,7 +22,7 @@
2222
provision+:
2323
expose-device: /dev/random
2424

25-
/plan-with-multiple-devices:
25+
/with-multiple-devices:
2626
summary: Test container provisioning with multiple device access
2727
discover:
2828
how: shell

tests/provision/container/device/test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ rlJournalStart
1010
rlPhaseStartTest "Single device access test"
1111
# Test the plan with single device access enabled
1212
rlRun "export TMT_EXPOSABLE_RUNNER_DEVICES='/dev/random'" 0 "Set device allowlist"
13-
rlRun -s "tmt run -vvvddd --scratch --id $run plan --name /plan-with-random test --name /test-random-device"
13+
rlRun -s "tmt run -vvvddd --scratch --id $run plan --name /plan/with-random test --name /test-random-device"
1414
# Check if device access was configured (look for --device /dev/random in logs)
1515
rlAssertGrep "--device /dev/random" $rlRun_LOG
1616
rlPhaseEnd
1717

1818
rlPhaseStartTest "Multiple devices access test"
1919
# Test the plan with multiple devices access enabled
2020
rlRun "export TMT_EXPOSABLE_RUNNER_DEVICES='/dev/random /dev/urandom'" 0 "Set device allowlist"
21-
rlRun -s "tmt run -vvvddd --scratch --id $run plan --name /plan-with-multiple-devices test --name /test-multiple-devices"
21+
rlRun -s "tmt run -vvvddd --scratch --id $run plan --name /plan/with-multiple-devices test --name /test-multiple-devices"
2222
# Check if multiple device access was configured
2323
rlAssertGrep "--device /dev/random" $rlRun_LOG
2424
rlAssertGrep "--device /dev/urandom" $rlRun_LOG
@@ -28,7 +28,7 @@ rlJournalStart
2828
# Test that device access fails when TMT_EXPOSABLE_RUNNER_DEVICES is not set
2929
# Temporarily unset the environment variable to test security restriction
3030
rlRun "unset TMT_EXPOSABLE_RUNNER_DEVICES"
31-
rlRun "tmt run -vvvddd --scratch --id $run plan --name /plan-with-random test --name /test-random-device" 2 "Device access should fail without allowlist"
31+
rlRun "tmt run -vvvddd --scratch --id $run plan --name /plan/with-random test --name /test-random-device" 2 "Device access should fail without allowlist"
3232
rlPhaseEnd
3333

3434
rlPhaseStartCleanup

0 commit comments

Comments
 (0)