mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
* 'devel' of https://github.com/arangodb/arangodb: remove system stackframes from ruby output; lintify yield on shutdown
This commit is contained in:
commit
1b1fb806fd
|
@ -41,6 +41,8 @@
|
|||
#include "Scheduler/JobQueue.h"
|
||||
#include "Scheduler/Task.h"
|
||||
|
||||
#include <thread>
|
||||
|
||||
using namespace arangodb;
|
||||
using namespace arangodb::basics;
|
||||
using namespace arangodb::rest;
|
||||
|
@ -429,8 +431,11 @@ void Scheduler::shutdown() {
|
|||
bool done = false;
|
||||
|
||||
while (!done) {
|
||||
MUTEX_LOCKER(guard, _threadsLock);
|
||||
done = _threads.empty();
|
||||
{
|
||||
MUTEX_LOCKER(guard, _threadsLock);
|
||||
done = _threads.empty();
|
||||
}
|
||||
std::this_thread::yield();
|
||||
}
|
||||
|
||||
deleteOldThreads();
|
||||
|
|
|
@ -105,9 +105,11 @@ function rubyTests (options, ssl) {
|
|||
'end\n';
|
||||
|
||||
fs.write(tmpname, rspecConfig);
|
||||
if (options.extremeVerbosity === true){
|
||||
print("rspecConfig: \n" + rspecConfig);
|
||||
|
||||
if (options.extremeVerbosity === true) {
|
||||
print('rspecConfig: \n' + rspecConfig);
|
||||
}
|
||||
|
||||
try {
|
||||
fs.makeDirectory(pu.LOGS_DIR);
|
||||
} catch (err) {}
|
||||
|
@ -146,6 +148,7 @@ function rubyTests (options, ssl) {
|
|||
const msg = yaml.safeDump(testCase)
|
||||
.replace(/.*rspec\/core.*\n/gm, '')
|
||||
.replace(/.*rspec\\core.*\n/gm, '')
|
||||
.replace(/.*lib\/ruby.*\n/, '')
|
||||
.replace(/.*- >-.*\n/gm, '')
|
||||
.replace(/\n *`/gm, ' `');
|
||||
print('RSpec test case falied: \n' + msg);
|
||||
|
|
Loading…
Reference in New Issue