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:
Luca Boccassi
2024-04-07 16:24:38 +01:00
committed by Yu Watanabe
parent b8b0704ce9
commit 1b0cc135d0
2 changed files with 11 additions and 0 deletions

View 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