tests/readlink.py
author Pierre-Yves David <pierre-yves.david@fb.com>
Fri, 29 May 2015 00:09:36 -0700
changeset 25338 405303df6a2a
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
ssh: test some no-op pull through ssh with --debug It appears that we are never running any wireprotocol operation with a --debug flag. So we are adding some basic testing into 'test-ssh.t'

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