X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=t%2Ft0004-server.sh;h=76128512bca28b7fba427cdb4b36b446629472cd;hb=20635453048bdf7f99d9fb5fbe53178ff386f74c;hp=04d6cd609a33a9886130d31efff86f4af509ab6f;hpb=0879c9de4eaf8c78131c243d8e9fec013df0d14a;p=paraslash.git diff --git a/t/t0004-server.sh b/t/t0004-server.sh index 04d6cd60..76128512 100755 --- a/t/t0004-server.sh +++ b/t/t0004-server.sh @@ -21,7 +21,8 @@ pubkey=$privkey.pub serverlog=server.log get_audio_file_paths ogg -oggs="$result" +declare -a oggs=($result) +declare -a oggs_base=(${oggs[@]##*/}) declare -a commands=() cmdline=() required_objects=() good=() bad=() i=0 @@ -38,14 +39,14 @@ bad[$i]='!^successfully' let i++ commands[$i]="add_ogg" required_objects[$i]='ogg_afh' -cmdline[$i]="add $oggs" +cmdline[$i]="add ${oggs[@]}" bad[$i]='.' let i++ commands[$i]="ls_ogg" required_objects[$i]='ogg_afh' -cmdline[$i]="ls -lv -p $oggs" -good[$i]='^path:' +cmdline[$i]="ls -l=v ${oggs_base[@]}" +good[$i]='^basename:' let i++ commands[$i]="term"