]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/chdir-coredump: Use readlink -e
authorSam Lang <sam.lang@inktank.com>
Fri, 1 Feb 2013 22:07:29 +0000 (16:07 -0600)
committerSam Lang <sam.lang@inktank.com>
Fri, 1 Feb 2013 22:07:29 +0000 (16:07 -0600)
realpath isn't available everywhere, use readlink -e instead.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
teuthology/task/chdir-coredump

index b27904eaf6bc8c44833d510d4595d2366852091f..9c0b4581dc567f1cd4de466799880d954a81cd6a 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-testdir=$(realpath $(dirname $0))
+testdir=$(readlink -e $(dirname $0))
 # valgrind only dumps to cwd, so cwd there...
 cd ${testdir}/archive/coredump