From 4a586fc44f64af9ab3ef32b9dffc598533038b07 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sun, 3 Jun 2012 10:18:37 -0300 Subject: [PATCH] b2/test/Common: also provide empty hierarchy if the input is empty; name the file --- b2/test/Common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b2/test/Common b/b2/test/Common index 6514d4f..be1f672 100755 --- a/b2/test/Common +++ b/b2/test/Common @@ -13,8 +13,8 @@ run_boom() { - if [ "`sed -n '/^!-/p;q' _in`" ]; then - args="<(echo ';')" + if [ "`sed -n '/^!-/p;q' _in`" -o ! -s _in ]; then + args="-N dummy <(echo ';')" else args="-N h <(sed -n '/^!-/q;p' _in)" fi