Megatest

Check-in [a09b4531f6]
Login
Overview
Comment:Fixed broken query
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.60
Files: files | file ages | folders
SHA1: a09b4531f61fd5c437f94448954e52a24ba8663d
User & Date: matt on 2014-08-28 00:47:18
Other Links: branch diff | manifest | tags
Context
2014-08-28
12:27
Fixed mysterious crashing on SLES11 bug, just a typo check-in: 8b114d33a7 user: mrwellan tags: v1.60
00:47
Fixed broken query check-in: a09b4531f6 user: matt tags: v1.60
00:37
Fixed typo, added hander for scenaio where can receive bad data check-in: 660a006630 user: matt tags: v1.60
Changes

Modified db.scm from [02c1e91472] to [75e84ce1bd].

2132
2133
2134
2135
2136
2137
2138
2139

2140
2141
2142
2143
2144
2145
2146

2147
2148
2149
2150
2151
2152
2153
2132
2133
2134
2135
2136
2137
2138

2139


2140
2141
2142
2143

2144
2145
2146
2147
2148
2149
2150
2151







-
+
-
-




-
+







;; (db:delay-if-busy)
;; (apply sqlite3:execute db query params)))
;; (db:delay-if-busy)

(define (db:test-get-records-for-index-file dbstruct run-id test-name)
  (let ((res '()))
    (sqlite3:for-each-row 
     (lambda (id itempath state status run_duration logf-id comment-id)
     (lambda (id itempath state status run_duration logf comment)
       (let ((logf    (db:get-string dbstruct logf-id))
	     (comment (db:get-string dbstruct comment-id)))
       (set! res (cons (vector id itempath state status run_duration logf comment) res)))
     (db:get-db dbstruct run-id)
     "SELECT id,item_path,state,status,run_duration,final_logf,comment FROM tests WHERE testname=? AND item_path != '';"
     test-name)
    res)))
    res))

;;======================================================================
;; Tests meta data
;;======================================================================

;; read the record given a testname
(define (db:testmeta-get-record dbstruct testname)