.urchin directories

This commit is contained in:
Thomas Levine 2016-02-27 16:38:36 +00:00
parent e4c880a052
commit f67dedd7ff
9 changed files with 6 additions and 29 deletions

2
tests/.urchin/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -1,6 +0,0 @@
success
success
success
success
success

View File

@ -1 +0,0 @@
.testsuite/a/b/c/../../..

View File

@ -1,12 +0,0 @@
To suppress this message, create the .urchin directory in the root of your
mkdir '/tmp/tmp.DkrDJbxJYc/.urchin'
We use the following directory as root because no root is explicly set.
/tmp/tmp.DkrDJbxJYc
To suppress this message, create the .urchin directory in the root of your
tests, maybe like this:
mkdir '/tmp/tmp.DkrDJbxJYc/.urchin'
/tmp/tmp.DkrDJbxJYc

View File

@ -1 +0,0 @@
.testsuite/a/not-a-file: No such file or directory

13
urchin
View File

@ -39,16 +39,12 @@ urchin_root() {
else
origdir=$(dirname "$orig")
fi
echo "We use the following directory as root because no root is explicly set.
echo "You must create a .urchin directory to specify the urchin root.
Run something like this, and then run urchin again.
$origdir
To suppress this message, create the .urchin directory in the root of your
tests, maybe like this:
mkdir '$origdir/.urchin'
mkdir '$origdir/.urchin'
" >&2
echo "$origdir"
exit 1
else
urchin_root "$current"/.. "$orig"
fi
@ -319,7 +315,6 @@ root="$(urchin_root "$1")"
if dirname "$(readlink -f "$root")" |
grep -Fi 'test' > /dev/null || $force; then
logfile="$(readlink -f "$root")/.urchin/.log"
mkdir -p "$(dirname "$logfile")"
echo > "$logfile"
if "$tap_format"; then