miaou-test eval cmd
This commit is contained in:
@@ -6,14 +6,15 @@
|
|||||||
|
|
||||||
function assert {
|
function assert {
|
||||||
((test_count++))
|
((test_count++))
|
||||||
if miaou-bash ./test/stub/scenario.bash "$1" >/dev/null 2>/dev/null 3>_miaou; then
|
cmd="./test/stub/scenario.bash $1"
|
||||||
|
if eval "cmd" >/dev/null 2>/dev/null 3>_miaou; then
|
||||||
if [[ -s _miaou ]]; then
|
if [[ -s _miaou ]]; then
|
||||||
echo -n .
|
echo -n .
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo -n F
|
echo -n F
|
||||||
failures+=("$1")
|
failures+=("$cmd")
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user