diff options
Diffstat (limited to 'meson/test cases/common/51 run target/fakeburner.py')
-rwxr-xr-x | meson/test cases/common/51 run target/fakeburner.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meson/test cases/common/51 run target/fakeburner.py b/meson/test cases/common/51 run target/fakeburner.py new file mode 100755 index 000000000..8b1f35343 --- /dev/null +++ b/meson/test cases/common/51 run target/fakeburner.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 + + +import sys + +plain_arg = sys.argv[1] +_, filename, _ = plain_arg.split(':') +try: + with open(filename, 'rb') as f: + content = f.read() +except FileNotFoundError: + print('Could not open file. Missing dependency?') + sys.exit(1) +print('File opened, pretending to send it somewhere.') +print(len(content), 'bytes uploaded') |