sbsv2/raptor/test/smoke_suite/sbs_with_nonexisting_bldinf.py
changeset 674 37ee82a83d43
parent 591 22486c9c7b15
--- a/sbsv2/raptor/test/smoke_suite/sbs_with_nonexisting_bldinf.py	Tue Nov 02 16:54:53 2010 +0800
+++ b/sbsv2/raptor/test/smoke_suite/sbs_with_nonexisting_bldinf.py	Fri Nov 12 14:49:36 2010 +0000
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
 # All rights reserved.
 # This component and the accompanying materials are made available
 # under the terms of the License "Eclipse Public License v1.0"
@@ -18,11 +18,23 @@
 
 def run():
 	t = SmokeTest()
-	t.id = "80"
+
 	t.name = "sbs_with_nonexisting_bldinf"
 	t.description = "Test if sbs generates warning if invoked without bld.inf specified i.e. using default bld.inf which doesn't exist"
 	t.command = "mkdir ${EPOCROOT}/emptydir; rm ${EPOCROOT}/emptydir/*;  cd ${EPOCROOT}/emptydir; sbs -f ${SBSLOGFILE} -m {SBSMAKEFILE}"
 	t.usebash = True
 	t.warnings = 1 
 	t.run()
+	
+	t.name = "sbs_with_nonexisting_bldinf_cli"
+	t.description = "Test if sbs generates an error if invoked with a bad -b option"
+	t.command = "sbs -b none.inf"
+	t.usebash = False
+	t.errors = 1
+	t.warnings = 0
+	t.returncode = 1
+	t.mustmatch = ["sbs: error: build info file does not exist \(component .*none.inf\)"] 
+	t.run()
+	
+	t.print_result()
 	return t