mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test-execute: check for s390x first and duplicate test
s390x will define both s390x and s390, so exec-personality-s390.service is ran in both cases but fails on s390x, as the personality returned is s390x. Split the test and check specifically for s390x.
This commit is contained in:
committed by
Yu Watanabe
parent
b8b0704ce9
commit
1b0cc135d0
@@ -456,6 +456,9 @@ static void test_exec_personality(Manager *m) {
|
||||
#if defined(__x86_64__)
|
||||
test(m, "exec-personality-x86-64.service", 0, CLD_EXITED);
|
||||
|
||||
#elif defined(__s390x__)
|
||||
test(m, "exec-personality-s390x.service", 0, CLD_EXITED);
|
||||
|
||||
#elif defined(__s390__)
|
||||
test(m, "exec-personality-s390.service", 0, CLD_EXITED);
|
||||
|
||||
|
||||
8
test/test-execute/exec-personality-s390x.service
Normal file
8
test/test-execute/exec-personality-s390x.service
Normal file
@@ -0,0 +1,8 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
[Unit]
|
||||
Description=Test for Personality=s390x
|
||||
|
||||
[Service]
|
||||
ExecStart=sh -x -c 'c=$$(uname -m); test "$$c" = "s390x"'
|
||||
Type=oneshot
|
||||
Personality=s390x
|
||||
Reference in New Issue
Block a user