tests/readlink.py
author Augie Fackler <augie@google.com>
Sat, 19 Mar 2016 14:26:10 -0400
changeset 28596 9949950664cd
parent 25660 328739ea70c3
child 29175 7bcfb9090c86
permissions -rwxr-xr-x
run-tests: add support for automatically bisecting test failures

#!/usr/bin/env python

import errno, os, sys

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

sys.exit(0)