update-binfmts enable command might fail on autopkgtests due to /proc missing some bits. Ignore the results for now

This commit is contained in:
Gianfranco Costamagna 2020-08-31 00:52:17 +02:00
parent 4b61e92a4a
commit 1a78b82ac7

View File

@ -295,7 +295,7 @@ clang-$VERSION -O3 -emit-llvm foo.c -c -o foo.bc
chmod +x foo.bc
# only run if the binfmt is installed correctly
if /usr/sbin/update-binfmts --display llvm-$VERSION-runtime.binfmt &> /dev/null; then
/usr/sbin/update-binfmts --enable llvm-$VERSION-runtime.binfmt
/usr/sbin/update-binfmts --enable llvm-$VERSION-runtime.binfmt || true
if ! ./foo.bc|grep -q "lli foo"; then
echo "executing ./foo.bc failed"
./foo.bc || true