From 038ba3dade7d285167bdb3ae5caa45b27c11bf79 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 25 Nov 2014 15:21:11 -0500 Subject: [PATCH] tests: Fix u-boot test failure This bit needs to be specific to syslinux. --- tests/admin-test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/admin-test.sh b/tests/admin-test.sh index ebb18849..f0e2e643 100755 --- a/tests/admin-test.sh +++ b/tests/admin-test.sh @@ -1,4 +1,3 @@ -#!/bin/bash # # Copyright (C) 2011,2014 Colin Walters # @@ -29,7 +28,9 @@ ostree admin --sysroot=sysroot deploy --karg=root=LABEL=MOO --karg=quiet --os=te ostree admin --sysroot=sysroot status | tee status.txt assert_file_has_content status.txt 'Version: 1.0.10' -assert_file_has_content sysroot/boot/loader/syslinux.cfg 'TestOS 42 1.0.10' +if test -f sysroot/boot/loader/syslinux.cfg; then + assert_file_has_content sysroot/boot/loader/syslinux.cfg 'TestOS 42 1.0.10' +fi echo "ok deploy command"