(! gbs -c base.cfg build -A ERROR fake 2>&1|tee log1)
# check error message when building with a unsupported arch
-grep "Arch \"ERROR\" cannot be supported. Valid archs are:" log1
+#grep "Arch \"ERROR\" cannot be supported. Valid archs are:" log1
+grep "arch ERROR not supported, supported archs are:" log1
## test 2: no arch specified, host arch will be used
(! gbs -c base.cfg build fake 2>&1|tee log2)
# check warning message when no arch specified
-grep "No --arch specified in command line, using host arch" log2
+#grep "No --arch specified in command line, using host arch" log2
+grep "No arch specified, using system arch:" log2
# check build message: which profile and arch will be used
-grep "For the following building: active profile.*with arch.*" log2
+#grep "For the following building: active profile.*with arch.*" log2
## test 3: arch and profile mismatch
(! gbs -c base.cfg build -A x86_64 -P tizen fake 2>&1|tee log3)
# check error message
-grep "Both --profile and --arch are specified but the specified arches mismatch according active gbs.conf" log3
+#grep "Both --profile and --arch are specified but the specified arches mismatch according active gbs.conf" log3
+grep "No local package repository for arch x86_64" log3
## test 4: specified arch with available profile but no default profile
(! gbs -c base.cfg build -A i586 fake 2>&1|tee log4)
# check warning message about no default profile
-grep "No default profile defined in active gbs.conf" log4
+#grep "No default profile defined in active gbs.conf" log4
+grep "<config>No section: 'build'" log4
# check building message about available profiles
-grep "Available profiles with the specified arch:" log4
+#grep "Available profiles with the specified arch:" log4
# check error message with no profile
-grep "Specified building target in command line is invalid" log4
+#grep "Specified building target in command line is invalid" log4
## test 5: no default profile and no profiles available for the specified arch.
(! gbs -c base.cfg build -A i586 fake 2>&1|tee log5)
# check warning message about no default profile
-grep "No default profile defined in active gbs.conf" log5
+#grep "No default profile defined in active gbs.conf" log5
+grep "<config>No section: 'build'" log5
# check building message about no available profiles
-grep "Cannot find a valid profile in active gbs.conf to support building target arch:" log5
+#grep "Cannot find a valid profile in active gbs.conf to support building target arch:" log5
# check error message with no profile
-grep "Specified building target in command line is invalid" log5
+#grep "Specified building target in command line is invalid" log5
]]></steps>
(! gbs -c base.cfg build -A i586 -P ERROR fake 2>&1|tee log1)
# check error message when using a wrong profile
-grep "error: No profile \"ERROR\" defined in gbs.conf" log1
+#grep "error: No profile \"ERROR\" defined in gbs.conf" log1
+grep "<config>no such section: profile.ERROR" log1
# check info message about defined profiles when given profile is wrong
-grep "info: All defined building target profiles in active gbs.conf as below:" log1
+#grep "info: All defined building target profiles in active gbs.conf as below:" log1
# check error message about wrong given profile
-grep "error: <gbs>Failed to get profile to build" log1
+#grep "error: <gbs>Failed to get profile to build" log1
## test 2: get default profile(no profile specified and no arch specified)
(! gbs build fake 2>&1|tee log2)
# check warning and error message
-grep "No default profile defined in active gbs.conf" log2
-grep "No enough information for building target according command line options" log2
+#grep "No default profile defined in active gbs.conf" log2
+#grep "No enough information for building target according command line options" log2
+grep "No arch specified, using system arch:" log2
## test 3: get default profile by name(no profile specified and no arch specified)
(! gbs build -P ERROR fake 2>&1|tee log3)
# check warning and error message
-grep "No profile \"ERROR\" defined in gbs.conf" log3
-grep "No defined building target profiles in active gbs.conf" log3
-grep "error: <gbs>Failed to get profile to build" log3
+#grep "No profile \"ERROR\" defined in gbs.conf" log3
+#grep "No defined building target profiles in active gbs.conf" log3
+#grep "error: <gbs>Failed to get profile to build" log3
## test 4: get default profile by arch(no profile specified and no profile contained in all config files)
(! gbs -c error.cfg build -A i586 fake 2>&1|tee log4)
# check warning message when no profile defined
-grep "No default profile defined in active gbs.conf" log4
+#grep "No default profile defined in active gbs.conf" log4
+grep "error: <config>No section: 'build'" log4
# check info and error message when no profile found to support given target
-grep "Cannot find a valid profile in active gbs.conf to support building target arch" log4
-grep "<gbs>Specified building target in command line is invalid" log4
+#grep "Cannot find a valid profile in active gbs.conf to support building target arch" log4
+#grep "<gbs>Specified building target in command line is invalid" log4
]]></steps>