From: MyungJoo Ham Date: Fri, 6 Sep 2019 04:36:37 +0000 (+0900) Subject: [API] If "SILENT", don't show stderr/stdout from gstTest X-Git-Tag: accepted/tizen/unified/20191211.022200~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0064498bbbd454f20194b1fac0966fbbdcedc79;p=platform%2Fupstream%2FSSAT.git [API] If "SILENT", don't show stderr/stdout from gstTest stderr/stdour of gst-launch should be supressed if it's "silent". Signed-off-by: MyungJoo Ham --- diff --git a/ssat-api.sh b/ssat-api.sh index fa138c1..4f4ecee 100644 --- a/ssat-api.sh +++ b/ssat-api.sh @@ -290,7 +290,11 @@ function gstTest() { if [[ "$VALGRIND" -eq "1" ]]; then calloutputprefix='valgrind --track-origins=yes' fi - calloutput=$(eval $calloutputprefix gst-launch-1.0 -f -q $1) + if [[ "${SILENT}" -eq "1" ]]; then + calloutput=$(eval $calloutputprefix gst-launch-1.0 -f -q $1 &> /dev/null) + else + calloutput=$(eval $calloutputprefix gst-launch-1.0 -f -q $1) + fi retcode=$? desired=0