Browse Source

Fix the setup/teardown urchin test scripts under zsh

The v* glob expansions were failing with an error under zsh, just set
nullglob/NULL_GLOB and make both bash and zsh happier.
master
Emanuele Aina 12 years ago
parent
commit
04dba10b9a
  1. 3
      test/fast/setup
  2. 3
      test/fast/setup_dir
  3. 3
      test/fast/teardown

3
test/fast/setup

@ -4,6 +4,9 @@
cd ../.. cd ../..
# Back up # Back up
type setopt >/dev/null 2>&1 && setopt NULL_GLOB
type shopt >/dev/null 2>&1 && shopt -s nullglob
rm -Rf v* src alias rm -Rf v* src alias
mkdir src alias mkdir src alias
) )

3
test/fast/setup_dir

@ -4,6 +4,9 @@
cd ../.. cd ../..
# Back up # Back up
type setopt >/dev/null 2>&1 && setopt NULL_GLOB
type shopt >/dev/null 2>&1 && shopt -s nullglob
mkdir -p bak mkdir -p bak
mv v* src alias bak || sleep 0s mv v* src alias bak || sleep 0s
) )

3
test/fast/teardown

@ -3,5 +3,8 @@
# Remove temporary files # Remove temporary files
( (
cd ../.. cd ../..
type setopt >/dev/null 2>&1 && setopt NULL_GLOB
type shopt >/dev/null 2>&1 && shopt -s nullglob
rm -fR v* src alias rm -fR v* src alias
) )

Loading…
Cancel
Save