()
| 29 | |
| 30 | |
| 31 | def main(): |
| 32 | # Make sure BASE_DIR ends with tensorflow. If it doesn't, we probably |
| 33 | # computed the wrong directory. |
| 34 | if os.path.split(BASE_DIR)[-1] != 'tensorflow': |
| 35 | raise AssertionError( |
| 36 | "BASE_DIR = '%s' doesn't end with tensorflow" % BASE_DIR) |
| 37 | |
| 38 | for dirpath, dirnames, filenames in os.walk(BASE_DIR, followlinks=True): |
| 39 | lowercase_directories = [x.lower() for x in dirnames] |
| 40 | lowercase_files = [x.lower() for x in filenames] |
| 41 | |
| 42 | lowercase_dir_contents = lowercase_directories + lowercase_files |
| 43 | if len(lowercase_dir_contents) != len(set(lowercase_dir_contents)): |
| 44 | raise AssertionError(ERROR_MESSAGE.format(dirpath)) |
| 45 | |
| 46 | |
| 47 | if __name__ == '__main__': |
no test coverage detected