tests/readlink.py
author Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Mon, 12 Oct 2015 15:42:32 +0300
changeset 26594 75e29fcc5a71
parent 25660 328739ea70c3
child 29175 7bcfb9090c86
permissions -rwxr-xr-x
test-convert-cvs: add sleep so cvs notices changes This change makes the test pass on gcc112.fsffrance.org.

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