mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 17:12:55 +00:00
scripts/functions: log the test strings
This commit is contained in:
parent
e87fb32624
commit
55ba3f6378
@ -150,6 +150,7 @@ CT_Test() {
|
||||
local ret
|
||||
local m="$1"
|
||||
shift
|
||||
CT_DoLog DEBUG "Testing '! ( $* )'"
|
||||
test "$@" && CT_DoLog WARN "$m"
|
||||
return 0
|
||||
}
|
||||
@ -159,6 +160,7 @@ CT_Test() {
|
||||
CT_TestAndAbort() {
|
||||
local m="$1"
|
||||
shift
|
||||
CT_DoLog DEBUG "Testing '! ( $* )'"
|
||||
test "$@" && CT_Abort "$m"
|
||||
return 0
|
||||
}
|
||||
@ -168,6 +170,7 @@ CT_TestAndAbort() {
|
||||
CT_TestOrAbort() {
|
||||
local m="$1"
|
||||
shift
|
||||
CT_DoLog DEBUG "Testing '$*'"
|
||||
test "$@" || CT_Abort "$m"
|
||||
return 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user