Skip to content

Commit 2b2eefe

Browse files
committed
test: move TEST-41-ONESHOT-RESTART setup to static files
1 parent d48b27b commit 2b2eefe

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

test/TEST-41-ONESHOT-RESTART/test.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,8 @@ test_setup() {
1212

1313
setup_basic_environment
1414
mask_supporting_services
15-
16-
# setup the testsuite service
17-
cat >$initdir/etc/systemd/system/testsuite.service <<EOF
18-
[Unit]
19-
Description=Testsuite service
20-
21-
[Service]
22-
ExecStart=/testsuite.sh
23-
Type=oneshot
24-
EOF
25-
cp testsuite.sh $initdir/
26-
27-
setup_testsuite
2815
)
2916
setup_nspawn_root
3017
}
3118

32-
do_test "$@"
19+
do_test "$@" 41

test/units/testsuite-41.service

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Unit]
2+
Description=TEST-41-ONESHOT-RESTART
3+
4+
[Service]
5+
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
6+
Type=oneshot

0 commit comments

Comments
 (0)