Add self-test and modify tidy to accomodate the test

This commit is contained in:
Timur Borkhodoev 2018-02-01 15:57:11 -05:00
parent 41bf86631b
commit bcb4bd2f30
2 changed files with 7 additions and 2 deletions

View file

@ -461,8 +461,8 @@ def rec_parse(current_path, current_node):
def check_manifest_dirs(config_file, print_text=True):
if not os.path.exists(config_file):
print("%s manifest file is required but was not found" % config_file)
sys.exit(1)
yield(config_file, 0, "%s manifest file is required but was not found" % config_file)
return
# Load configs from include.ini
with open(config_file) as content: