tests/readlink.py
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
Sat, 09 Oct 2010 17:58:54 -0500
changeset 12679 5ce3a1eb7f88
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
test-convert-svn-encoding.t: ignore that subversion %-encodes $TESTTMP Use a glob instead of expecting $TESTTMP.

#!/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)