tests/readlink.py
author Gregory Szorc <gregory.szorc@gmail.com>
Sat, 19 Apr 2014 23:47:59 -0700
changeset 21355 d83f4e94512a
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
run-tests: move outputtimes() into TestRunner

#!/usr/bin/env python

import errno, os, sys

for f in sys.argv[1:]:
    try:
        print f, '->', os.readlink(f)
    except OSError, err:
        if err.errno != errno.EINVAL:
            raise
        print f, 'not a symlink'

sys.exit(0)