summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2016-05-24 12:19:11 +0200
committerOndrej Holy <oholy@redhat.com>2016-05-24 12:19:11 +0200
commitbab2941f14288285e3556bcc9406dffb2340eea1 (patch)
tree971d0ea3990c878f2e11918491592e9491e214ba /test
parent6d773947fab53a2a29cc43a38dab86754a8963fa (diff)
downloadgvfs-bab2941f14288285e3556bcc9406dffb2340eea1.tar.gz
tests: Suppress unnecessary output from find_alternative
This suppress the following output from find_alternative: which: no apache2 in ($PATH)
Diffstat (limited to 'test')
-rwxr-xr-xtest/gvfs-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gvfs-test b/test/gvfs-test
index 8a4ada1d..86ed6115 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -55,7 +55,7 @@ def find_alternative(cmds):
'''Find command in cmds array and return the found alternative'''
for cmd in cmds:
- if subprocess.call(['which', cmd], stdout=subprocess.PIPE) == 0:
+ if subprocess.call(['which', cmd], stdout=subprocess.PIPE, stderr=subprocess.PIPE) == 0:
return cmd
in_testbed = os.path.exists('/home/gvfs_sandbox_marker')