cd = os.path.realpath('../../../t')
WVPASS(cd)
sd = os.path.realpath(cd + '/sampledata')
- WVPASSEQ(index.realpath(cd + '/sampledata'), cd + '/sampledata')
+ WVPASSEQ(index.realpath(cd + '/sampledata'), sd)
WVPASSEQ(os.path.realpath(cd + '/sampledata/x'), sd + '/x')
- WVPASSEQ(os.path.realpath(cd + '/sampledata/etc'), os.path.realpath('/etc'))
- WVPASSEQ(index.realpath(cd + '/sampledata/etc'), sd + '/etc')
+ WVPASSEQ(os.path.realpath(cd + '/sampledata/abs-symlink'),
+ sd + '/abs-symlink-target')
+ WVPASSEQ(index.realpath(cd + '/sampledata/abs-symlink'),
+ sd + '/abs-symlink')
@wvtest
#!/usr/bin/env bash
+set -o pipefail
+
top=$(pwd)
usage()
cd t/sampledata || exit $?
ln -sf a b || exit $?
ln -sf b c || exit $?
- ln -sf /etc . || exit $?
+ ln -sf "$(pwd)/abs-symlink-target" abs-symlink || exit $?
) || exit $?
;;
'--clean')