Don't move gcov output to root directory

In scripts/test/coverage, avoid attempting to move gcov output files
to the root directory when given no arguments.  Fixes bug 23741.
This commit is contained in:
Taylor Yu 2017-10-02 16:09:28 -05:00
parent dddae36f5e
commit e31ffb2741
2 changed files with 5 additions and 1 deletions

4
changes/bug23741 Normal file
View File

@ -0,0 +1,4 @@
o Minor bugfixes (testing):
- Prevent scripts/test/coverage from attempting to move gcov
output to the root directory. Fixes bug 23741; bugfix on
0.2.5.1-alpha.

View File

@ -29,7 +29,7 @@ for fn in src/or/*.c src/common/*.c; do
gcov -o $on $fn
if [ -e $GC ]
then
if [ -n $dst ]
if [ -d "$dst" ]
then
mv $GC $dst/$GC
fi