Mercurial > public > mercurial-scm > hg-stable
diff tests/readlink.py @ 5683:396c7010b0cd
Use common readlink.py instead of own implementations per test script.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 21 Dec 2007 10:24:03 +0100 |
parents | |
children | 08a0f04b56bd |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/readlink.py Fri Dec 21 10:24:03 2007 +0100 @@ -0,0 +1,12 @@ +#!/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)