[Bash-completion-commits] [SCM] bash-completion branch, master, updated. be649e63be72d5d2f4c283840f89f6857d0dba96

Ville Skyttä ville.skytta at iki.fi
Wed Apr 21 17:36:19 UTC 2010


The following commit has been merged in the master branch:
commit be649e63be72d5d2f4c283840f89f6857d0dba96
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Apr 21 20:30:49 2010 +0300

    Set cancel test outcome to untested, not unresolved if adding a test job fails.
    
    E.g. lp installed, but lpd not running which is not a rare scenario.

diff --git a/test/lib/completions/cancel.exp b/test/lib/completions/cancel.exp
index 764497c..24ca47c 100644
--- a/test/lib/completions/cancel.exp
+++ b/test/lib/completions/cancel.exp
@@ -12,7 +12,7 @@ setup
 
 
     # Adding a print job is successful?
-if {[assert_exec {lp -H hold fixtures/shared/default/foo} job]} {
+if {[assert_exec {lp -H hold fixtures/shared/default/foo} job "" "untested"]} {
     # Yes, adding a print-job is successful;
         # Retrieve job-id, so we can cancel the job after the test
     set job_id [lindex [split $job] 3]

-- 
bash-completion



More information about the Bash-completion-commits mailing list