Commit f84b795e authored by Yixing Lao's avatar Yixing Lao Committed by Robert Kimball

parse inline comments for manifest (#1006)

parent cc5ddd2f
...@@ -39,9 +39,11 @@ string ngraph::prepend_disabled(const string& test_case_name, ...@@ -39,9 +39,11 @@ string ngraph::prepend_disabled(const string& test_case_name,
string line; string line;
while (getline(f, line)) while (getline(f, line))
{ {
if (line.size() > 1 && line[0] != '#') size_t pound_pos = line.find('#');
line = (pound_pos > line.size()) ? line : line.substr(0, pound_pos);
line = trim(line);
if (line.size() > 1)
{ {
line = trim(line);
blacklist.insert(line); blacklist.insert(line);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment