提交 56c2836e authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

- Make `gulp test:worker` produce colorized output

- Make worker test raw files relative to worker/ directory.
上级 68f016a3
......@@ -60,7 +60,7 @@ gulp.task('test:api', shell.task(
gulp.task('test:worker', shell.task(
[
'if type make &> /dev/null; then make test; fi',
'worker/out/Release/mediasoup-worker-test --invisibles'
'cd worker && ./out/Release/mediasoup-worker-test --invisibles --use-colour=yes'
],
{
verbose : true
......
......@@ -10,7 +10,7 @@ class Helpers
public:
static bool ReadBinaryFile(const char* file, uint8_t* buffer, size_t* len)
{
std::string file_path = "worker/test/" + std::string(file);
std::string file_path = "test/" + std::string(file);
std::ifstream in(file_path, std::ios::ate | std::ios::binary);
if (!in)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论