build: further refactor ci test script for covercov groups
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
parent
80f91742ff
commit
9e5a4cb359
|
@ -25,21 +25,21 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up core coverage report file
|
# Set up core coverage report file
|
||||||
result=$(go test -vet=off -covermode=count -coverprofile=core.cov . ./api/ ./sysfs/)
|
result=$(go test -covermode=count -coverprofile=core.cov . ./api/ ./sysfs/)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
FAIL_PACKAGES+="core";
|
FAIL_PACKAGES+="core";
|
||||||
fi;
|
fi;
|
||||||
echo "$result"
|
echo "$result"
|
||||||
|
|
||||||
# Set up platforms coverage report file
|
# Set up platforms coverage report file
|
||||||
result=$(go test -vet=off -covermode=count -coverprofile=platforms.cov ./platforms/...)
|
result=$(go test -covermode=count -coverprofile=platforms.cov ./platforms/...)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
FAIL_PACKAGES+="platforms";
|
FAIL_PACKAGES+="platforms";
|
||||||
fi;
|
fi;
|
||||||
echo "$result"
|
echo "$result"
|
||||||
|
|
||||||
# Set up drivers coverage report file
|
# Set up drivers coverage report file
|
||||||
result=$(go test -vet=off -covermode=count -coverprofile=drivers.cov ./drivers/...)
|
result=$(go test -covermode=count -coverprofile=drivers.cov ./drivers/...)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
FAIL_PACKAGES+="drivers";
|
FAIL_PACKAGES+="drivers";
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in New Issue