More shell/Ruby compatibility fixes

This commit is contained in:
Moritz Bunkus 2007-07-04 14:40:52 +00:00
parent d2b010988c
commit 49a2aca3c9
4 changed files with 6 additions and 8 deletions

View File

@ -6,7 +6,7 @@ class T_046X_chapters < Test
end
def run
sys("../src/mkvextract chapters data/mkv/complex.mkv &> #{tmp}")
sys("../src/mkvextract chapters data/mkv/complex.mkv > #{tmp} 2>/dev/null")
return hash_tmp
end
end

View File

@ -6,7 +6,7 @@ class T_047X_tags < Test
end
def run
sys("../src/mkvextract tags data/mkv/complex.mkv &> #{tmp}")
sys("../src/mkvextract tags data/mkv/complex.mkv > #{tmp} 2>/dev/null")
return hash_tmp
end
end

View File

@ -6,7 +6,7 @@ class T_048X_chapters_ogmstyle < Test
end
def run
sys("../src/mkvextract chapters data/mkv/complex.mkv -s &> #{tmp}")
sys("../src/mkvextract chapters data/mkv/complex.mkv -s > #{tmp} 2>/dev/null")
return hash_tmp
end
end

View File

@ -6,12 +6,10 @@ class T_205X_cuesheets < Test
end
def run
merge("#{tmp}-src", "data/simple/v.mp3 --chapters " +
"data/text/cuewithtags2.cue")
sys("../src/mkvextract cuesheet #{tmp}-src --no-variable-data &> #{tmp}")
merge("#{tmp}-src", "data/simple/v.mp3 --chapters data/text/cuewithtags2.cue")
sys("../src/mkvextract cuesheet #{tmp}-src --no-variable-data > #{tmp} 2>/dev/null")
hash = hash_tmp(false)
sys("../src/mkvextract tracks #{tmp}-src --no-variable-data " +
"--cuesheet 1:#{tmp} > /dev/null")
sys("../src/mkvextract tracks #{tmp}-src --no-variable-data --cuesheet 1:#{tmp} > /dev/null 2>/dev/null")
hash += "-" + hash_tmp("#{tmp}.cue")
unlink_tmp_files
return hash