Index: tool/test.sh |
diff --git a/tool/test.sh b/tool/test.sh |
index e57dc992d0763311d5750cf77703e237087c63eb..be87aa79a2110d348ca91094ee5c4da5529d281e 100755 |
--- a/tool/test.sh |
+++ b/tool/test.sh |
@@ -15,7 +15,9 @@ cd $( dirname "${BASH_SOURCE[0]}" )/.. |
# Delete codegen expectation files to be sure that if a test fails to compile |
# we don't erroneously pick up the old version. |
-rm -r test/codegen/expect || fail |
+if [ -d test/codegen/expect ]; then |
+ rm -r test/codegen/expect || fail |
+fi |
# Make sure we don't run tests in code coverage mode. |
# this will cause us to generate files that are not part of the baseline |