when gcov definition is passed to build command,
a package that contains gcoverage information will be generated.
previously, there is a bug that causes building failed.
this patch fix it
Change-Id: I9dbdbc6b250c6086f58cc5e7361734372a32b002
-e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%'
+%if 0%{?gcov:1}
+ mkdir -p gcov-obj
+ find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
+%endif
+
%check
ninja \
-e 's%^.*: error: .*$%\x1b[37;41m&\x1b[m%' \
-e 's%^.*: warning: .*$%\x1b[30;43m&\x1b[m%'
-%if 0%{?gcov:1}
- mkdir -p gcov-obj
- find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
-%endif
-
%install
%if 0%{?__hash_signing}