diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-28 13:05:17 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-28 13:05:17 -0700 |
commit | aa0888459fc2ca41b0ad6bef5bfa72223ca33945 (patch) | |
tree | d13eda84594bb9ec5a446180b33af9ab636c6fcf /029tools.cc | |
parent | ede61a3186d3006a2bef7cac63bc61ab27b40110 (diff) | |
download | mu-aa0888459fc2ca41b0ad6bef5bfa72223ca33945.tar.gz |
1867 - keep tests from corrupting lesson/ directory
Diffstat (limited to '029tools.cc')
-rw-r--r-- | 029tools.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/029tools.cc b/029tools.cc index 45d6a20a..8285969e 100644 --- a/029tools.cc +++ b/029tools.cc @@ -186,8 +186,11 @@ case _SYSTEM: { raise << current_recipe_name() << ": '$system' requires exactly one ingredient, but got none\n" << end(); break; } - int status = system(current_instruction().ingredients.at(0).name.c_str()); products.resize(1); + // ignore 'system' calls in tests since anything we do with them is by + // definition impossible to test through mu. + if (Current_scenario) break; + int status = system(current_instruction().ingredients.at(0).name.c_str()); products.at(0).push_back(status); break; } |