Minor fix to CI job

Summary: Fix the issue where compilation error will not result in log file not
found error

Test Plan: None

Reviewers: sdong igor

CC: leveldb@

Task ID: #6968635

Blame Rev:
This commit is contained in:
krad 2015-09-10 18:49:09 -07:00
parent c67d206898
commit 7db1471cc1

View File

@ -40,13 +40,23 @@ PARALLEL_UNIT_TEST_COMMANDS="[
$CLEANUP_ENV,
{
'name':'Build and test RocksDB debug version',
'shell':'$SHM $DEBUG make check 2>&1 > /dev/null || cat t/log-*',
'shell':'$DEBUG make -j$(nproc) all && $SHM make check > /dev/null 2>&1',
'user':'root'
},
{
'name':'Print logs',
'shell':'cat t/log-*',
'user':'root'
},
$CLEANUP_ENV,
{
'name':'Build and test RocksDB debug version under gcc-4.8.1',
'shell':'$SHM $GCC_481 $DEBUG make check 2>&1 > /dev/null || cat t/log-*',
'shell':'$GCC_481 $DEBUG make -j$(nproc) all && $SHM make check > /dev/null 2>&1',
'user':'root'
},
{
'name':'Print logs',
'shell':'cat t/log-*',
'user':'root'
},
],
@ -100,7 +110,7 @@ CLANG_UNIT_TEST_COMMANDS="[
$CLEANUP_ENV,
{
'name':'Build and test RocksDB debug',
'shell':'$CLANG $SHM $DEBUG make check',
'shell':'$CLANG $SHM $DEBUG make J=1 check',
'user':'root'
},
],