提交 3ccf1895 authored 作者: Frederic's avatar Frederic

Better error message.

This happen when we list only folders without tests to run.
上级 23132b03
......@@ -155,6 +155,8 @@ def run(stdout, stderr, argv, theano_nose, batch_size, time_profile,
data = cPickle.load(open(noseids_file, 'rb'))
ids = data['ids']
n_tests = len(ids)
if n_tests == 0:
raise Exception("0 test selected")
assert n_tests == max(ids)
# Standard batch testing is called for
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论