tests/readlink.py
author Mads Kiilerich <madski@unity3d.com>
Wed, 16 Jan 2013 02:01:11 +0100
changeset 18393 a38039ef7312
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
tests: make test-hgweb.t output stable Instability introduced in combination of a4d7fd7ad1f7 and e389a25e7e60.

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