[gjs: 3/18] build: Quiet output of invalid option test



commit 38566039d54cfd929e52d27b18a2fa7df6760576
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Oct 31 22:14:58 2019 -0700

    build: Quiet output of invalid option test
    
    We don't need this written to the log, we're just testing the exit code.

 installed-tests/scripts/testCommandLine.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/installed-tests/scripts/testCommandLine.sh b/installed-tests/scripts/testCommandLine.sh
index f5003f9b..b5019417 100755
--- a/installed-tests/scripts/testCommandLine.sh
+++ b/installed-tests/scripts/testCommandLine.sh
@@ -85,7 +85,7 @@ skip () {
     echo "ok $total - $1 # SKIP $2"
 }
 
-$gjs --invalid-option
+$gjs --invalid-option >/dev/null 2>/dev/null
 report_xfail "Invalid option should exit with failure"
 $gjs --invalid-option 2>&1 | grep -q invalid-option
 report "Invalid option should print a relevant message"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]