[title] Fixed testcase about query-log command
authordibs <dibs@samsung.com>
Fri, 29 Mar 2013 08:54:54 +0000 (17:54 +0900)
committerdibs <dibs@samsung.com>
Fri, 29 Mar 2013 08:54:54 +0000 (17:54 +0900)
build-cli
test/build-server.basic1/build-cli-32.testcase

index 47186af50b03c8735c8f53a41f60714c8baeadbe..760f48a84e451eba3dc33d024a9d3669e4f9568e 100755 (executable)
--- a/build-cli
+++ b/build-cli
@@ -38,6 +38,7 @@ require "BuildComm"
 require "FileTransferViaFTP"
 require "FileTransferViaDirect"
 require "JobLog"
+require "BuildServerException"
 
 
 #option parsing
@@ -321,6 +322,7 @@ begin
                                        raise RuntimeError, "The output file is already exist."
                                end
                                log = File.open(output, "w")
+                               puts "Started query log, writing to the file \"#{output}\""
                        end
 
                        result = JobLog.monitor(addr[0], addr[1], option[:job].strip) do |line|
@@ -328,6 +330,7 @@ begin
                        end
                        if result and not output.nil? then
                                log.puts "=LOG_END"
+                               puts "End query log, check file \"#{output}\""
                        end
                rescue BuildServerException => e
                        log.puts e.err_message()
index 691473e592456bf3984d65d2a80783fee593dc70..5a146094e527ebb51b28d943f0df62c554aa58c2 100644 (file)
@@ -1,34 +1,10 @@
 #PRE-EXEC
 echo "query-log"
-../../build-cli query-log -d 127.0.0.1:2223 -j 1 --output a.txt
+rm -rf a.txt
 #EXEC
-cat a.txt | grep {2} | cut -d '}' -f2
+../../build-cli query-log -d 127.0.0.1:2223 -j 1 --output a.txt
 #POST-EXEC
 rm -rf a.txt
 #EXPECT
-Added new job
-Initializing job...
-Checking package version ...
-Invoking a thread for building Job
-New Job
-hecking build dependency ...
-Checking install dependency ...
-Started to build this job...
-JobBuilder
-ownloding client is initializing...
-Installing dependent packages...
-Downloading dependent source packages...
-Make clean...
-Make build...
-Make install...
-eneratiing pkginfo.manifest...
-Zipping...
-Creating package file ... a_0.0.1_ubuntu-32.zip
-Checking reverse build dependency ...
-Uploading ...
-Upload succeeded. Sync local pkg-server again...
-Snapshot:
-Job is completed!
-Job is FINISHED successfully!
-Updating the source info for project "testa"
-=LOG_END
+Started query log, writing to the file "a.txt"
+End query log, check file "a.txt"