aboutsummaryrefslogtreecommitdiff
path: root/test cases/common/58 run target/fakeburner.py
blob: 57280024a036e6db29de627c245f5220bd484ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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')