diff options
Diffstat (limited to 'yarns/tbdiff.shell-lib')
-rw-r--r-- | yarns/tbdiff.shell-lib | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/yarns/tbdiff.shell-lib b/yarns/tbdiff.shell-lib new file mode 100644 index 0000000..658efe6 --- /dev/null +++ b/yarns/tbdiff.shell-lib @@ -0,0 +1,14 @@ +# Shell library for tbdiff yarns. +# +# The shell functions in this library are meant to make writing IMPLEMENTS +# sections for yarn scenario tests easier. + +# Currently, yarn isn't setting $SRCDIR to point at the project source +# directory. We simulate this here. + +{ + set +u + if [ -z "$SRCDIR" ]; then + export SRCDIR="$(pwd)" + fi +} |