summaryrefslogtreecommitdiffstats
path: root/test cases/common/152 index customtarget/check_args.py
blob: 8663a6fe2f62fb10cc055450cb8be9839915a869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!python3

import sys
from pathlib import Path

def main():
    if len(sys.argv) != 2:
        print(sys.argv)
        return 1
    if sys.argv[1] != 'gen.c':
        print(sys.argv)
        return 2
    Path('foo').touch()

    return 0

if __name__ == '__main__':
    sys.exit(main())