Files
swift-mirror/test/ModuleInterface/ModuleCache/Inputs/check-is-forwarding-module.py
Harlan Haskins d3b8ce7ae2 [test] Update ParseableInterface to ModuleInterface
Also remove uses of -emit-parseable-module-interface from tests
2019-09-13 14:55:48 -07:00

9 lines
295 B
Python

import sys
for input_path in sys.argv[1:]:
with open(input_path, 'r') as yaml_file:
# Forwarding files are YAML files that start with '---'
if yaml_file.read(3) != '---':
print("swiftmodule '%s' is not a forwarding module!" % input_path)
sys.exit(1)