tests/readlink.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 23 Feb 2024 06:37:25 +0100
changeset 51424 3cee8706f53b
parent 48875 6000f5b25c9b
permissions -rwxr-xr-x
phases: directly update the phase sets in advanceboundary This is similar to what we do in retractboundary. There is no need to invalidate the cache if we have everything at hand to update it.

#!/usr/bin/env python3


import errno
import os
import 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, '->', f, 'not a symlink')

sys.exit(0)