diff --git a/tests/Urchin should do a sanity check so that directories like the user home are not specified as tests./.chainsaw/successful test b/tests/Urchin should do a sanity check so that directories like the user home are not specified as tests./.chainsaw/successful test deleted file mode 100644 index c52d3c2..0000000 --- a/tests/Urchin should do a sanity check so that directories like the user home are not specified as tests./.chainsaw/successful test +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exit 0 diff --git a/tests/Urchin should do a sanity check so that directories like the user home are not specified as tests./Urchin should warn if it is run on something that does not look like a test. b/tests/Urchin should do a sanity check so that directories like the user home are not specified as tests./Urchin should warn if it is run on something that does not look like a test. index f3d5523..cbf29ad 100755 --- a/tests/Urchin should do a sanity check so that directories like the user home are not specified as tests./Urchin should warn if it is run on something that does not look like a test. +++ b/tests/Urchin should do a sanity check so that directories like the user home are not specified as tests./Urchin should warn if it is run on something that does not look like a test. @@ -1,3 +1,5 @@ #!/bin/sh -! ../../urchin ./.chainsaw +tmp=$(mktemp -d)/blah +echo '#!/usr/bin/env true' > $tmp +! ../../urchin $tmp diff --git a/urchin b/urchin index 4fcda38..0d98b7c 100755 --- a/urchin +++ b/urchin @@ -309,7 +309,7 @@ logfile=$(fullpath "$1")/.urchin.log stdout_file=$(fullpath "$1")/.urchin_stdout # Run or present the Molly guard. -if basename "$(fullpath "$1")" | grep -Fi 'test' > /dev/null || $force +if fullpath "$1" | grep -Fi 'test' > /dev/null || $force then urchin_go "$1" "$shell_for_sh_tests" else