test: Pass personality test even when i686 userland runs on x86_64 kernel
authorBalint Reczey <balint.reczey@canonical.com>
Tue, 8 Oct 2019 14:41:24 +0000 (16:41 +0200)
committerMichael Biebl <biebl@debian.org>
Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)
(cherry picked from commit bd89d03544d2b8ea53af7af0a97d4d121ef048c4)
(cherry picked from commit ef677436aa203c24816021dd698b57f219f0ff64)

Gbp-Pq: Name test-Pass-personality-test-even-when-i686-userland-runs-o.patch

test/test-execute/exec-personality-x86.service

index a623a08cbedaad967afaec5d5632e172428bf067..4ece7de718e794e6078283cd2e1fa73a5d3cf31d 100644 (file)
@@ -2,6 +2,6 @@
 Description=Test for Personality=x86
 
 [Service]
-ExecStart=/bin/sh -x -c 'c=$$(uname -m); test "$$c" = "i686"'
+ExecStart=/bin/sh -x -c 'c=$$(uname -m); test "$$c" = "i686" -o "$$c" = "x86_64"'
 Type=oneshot
 Personality=x86