Mercurial > hg > mercurial-crew
view tests/readlink.py @ 23524:328afbad6e57
tests: make 'saved backup' globbing less narrow in rebase tests
Globbing the hash made it harder to maintain tests with run-tests -i when it
was so far by the generated test output.
The hashes are stable and we just need to add a (glob).
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sun, 07 Dec 2014 20:04:45 +0100 |
parents | 08a0f04b56bd |
children | 328739ea70c3 |
line wrap: on
line source
#!/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)