Mark crashing tests as failed
If a test generates a core dump, it is marked as a failure.
This commit is contained in:
@ -51,3 +51,7 @@ else
|
|||||||
rsync -a --no-o --no-g LOGS $logs_publish_dir
|
rsync -a --no-o --no-g LOGS $logs_publish_dir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for i in `find $logs_dir -name 'core*'`
|
||||||
|
do
|
||||||
|
test -e $i && echo "Test failed: core files generated" && exit 1
|
||||||
|
done
|
||||||
|
|||||||
@ -827,17 +827,16 @@ int TestConnections::copy_all_logs()
|
|||||||
|
|
||||||
sprintf(str, "%s/copy_logs.sh %s", test_dir, test_name);
|
sprintf(str, "%s/copy_logs.sh %s", test_dir, test_name);
|
||||||
tprintf("Executing %s\n", str);
|
tprintf("Executing %s\n", str);
|
||||||
|
|
||||||
if (system(str) != 0)
|
if (system(str) != 0)
|
||||||
{
|
{
|
||||||
tprintf("copy_logs.sh executing FAILED!\n");
|
tprintf("copy_logs.sh executing FAILED!\n");
|
||||||
return 1;
|
exit(1);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
tprintf("copy_logs.sh OK!\n");
|
tprintf("copy_logs.sh OK!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
int TestConnections::copy_all_logs_periodic()
|
int TestConnections::copy_all_logs_periodic()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user