[API] If "SILENT", don't show stderr/stdout from gstTest
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 6 Sep 2019 04:36:37 +0000 (13:36 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 6 Sep 2019 04:36:37 +0000 (13:36 +0900)
stderr/stdour of gst-launch should be supressed if it's "silent".

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
ssat-api.sh

index fa138c1..4f4ecee 100644 (file)
@@ -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