mirror of
https://github.com/boostorg/boost.git
synced 2025-04-17 02:34:53 +00:00
Disable revision must be numeric requirement, since Git uses SHA1 and so may have alpha characters
This commit is contained in:
parent
ca671cd998
commit
4dc4aa7e1f
1 changed files with 6 additions and 5 deletions
|
@ -198,11 +198,12 @@ void validate_run(const test_structure_t::run_t& run) {
|
|||
if(run.run_type != "incremental" && run.run_type != "full") {
|
||||
BOOST_THROW_EXCEPTION(xml_error("Expected run-type to be \"incremental\" or \"full\""));
|
||||
}
|
||||
BOOST_FOREACH(char ch, run.revision) {
|
||||
if(!('0' <= ch && ch <= '9')) {
|
||||
BOOST_THROW_EXCEPTION(xml_error("Expected revision to be a numeric constant"));
|
||||
}
|
||||
}
|
||||
// For Git, revision is a SHA, and thus may contain alpha characters
|
||||
// BOOST_FOREACH(char ch, run.revision) {
|
||||
// if(!('0' <= ch && ch <= '9')) {
|
||||
// BOOST_THROW_EXCEPTION(xml_error("Expected revision to be a numeric constant"));
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue