##// END OF EJS Templates
Use common readlink.py instead of own implementations per test script.
Thomas Arendsen Hein -
r5683:396c7010 default
parent child Browse files
Show More
@@ -0,0 +1,12 b''
1 #!/usr/bin/env python
2
3 import errno, os, sys
4
5 for f in sys.argv[1:]:
6 try:
7 print f, '->', os.readlink(f)
8 except OSError, err:
9 if err.errno != errno.EINVAL: raise
10 print f, 'not a symlink'
11
12 sys.exit(0)
@@ -18,7 +18,7 b' echo % symlink is left parent, executabl'
18
18
19 if [ -h a ]; then
19 if [ -h a ]; then
20 echo a is a symlink
20 echo a is a symlink
21 readlink a
21 $TESTDIR/readlink.py a
22 elif [ -x a ]; then
22 elif [ -x a ]; then
23 echo a is executable
23 echo a is executable
24 fi
24 fi
@@ -30,7 +30,7 b' echo % symlink is right parent, executab'
30
30
31 if [ -h a ]; then
31 if [ -h a ]; then
32 echo a is a symlink
32 echo a is a symlink
33 readlink a
33 $TESTDIR/readlink.py a
34 elif [ -x a ]; then
34 elif [ -x a ]; then
35 echo a is executable
35 echo a is executable
36 fi
36 fi
General Comments 0
You need to be logged in to leave comments. Login now