b2/test/Common: also provide empty hierarchy if the input is empty; name the file

This commit is contained in:
Werner Almesberger
2012-06-03 10:21:47 -03:00
parent da1010f92a
commit 4a586fc44f
+2 -2
View File
@@ -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