Overview
Comment: | Cleaned up remove runs |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | debug-printing |
Files: | files | file ages | folders |
SHA1: |
1b6a0ceec847e1249fe98fa83f726c52 |
User & Date: | mrwellan on 2011-06-29 20:56:02 |
Other Links: | branch diff | manifest | tags |
Context
2011-06-30
| ||
16:10 | Added ability to collapse itemized tests check-in: 501196c236 user: mrwellan tags: debug-printing | |
2011-06-29
| ||
20:56 | Cleaned up remove runs check-in: 1b6a0ceec8 user: mrwellan tags: debug-printing | |
15:31 | Fixed mishandling of an items list with no items, cleaned up tests check-in: b2dff05073 user: mrwellan tags: debug-printing | |
Changes
Modified db.scm from [978f7fb2d3] to [80b3c65cff].
︙ | |||
229 230 231 232 233 234 235 | 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | - + + + | (let ((qry (conc "UPDATE tests SET state=?,status=? WHERE " (if currstate (conc "state='" currstate "' AND ") "") (if currstatus (conc "status='" currstatus "' AND ") "") " testname=? AND NOT (item_path='' AND testname in (SELECT DISTINCT testname FROM tests WHERE testname=? AND item_path != ''));"))) ;;(debug:print 0 "QRY: " qry) (sqlite3:execute db qry newstate newstatus testname testname))) testnames)) |
︙ |
Modified runs.scm from [1c23033086] to [81b2c72b00].
︙ | |||
266 267 268 269 270 271 272 | 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 | + + + + + + - + | (let* ((keys (db-get-keys db)) (keyvallst (keys->vallist keys #t)) (run-id (register-run db keys))) ;; test-name))) ;; on the first pass or call to run-tests set FAILS to NOT_STARTED if ;; -keepgoing is specified (if (and (eq? *passnum* 0) (args:get-arg "-keepgoing")) (begin ;; have to delete test records where NOT_STARTED since they can cause -keepgoing to ;; get stuck due to becoming inaccessible from a failed test. I.e. if test B depends ;; on test A but test B reached the point on being registered as NOT_STARTED and test ;; A failed for some reason then on re-run using -keepgoing the run can never complete. (db:delete-tests-in-state db run-id "NOT_STARTED") |
︙ | |||
457 458 459 460 461 462 463 | 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 | - - + + + - + | (hash-table-delete! *waiting-queue* testname))) (if (not db) (sqlite3:finalize! ldb))))) waiting-test-names) ;; (sleep 10) ;; no point in rushing things at this stage? (loop (hash-table-keys *waiting-queue*))))))) |
︙ | |||
482 483 484 485 486 487 488 | 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 | + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - | (tests (db-get-tests-for-run db (db:get-value-by-header run header "id") testpatt itempatt)) (lasttpath "/does/not/exist/I/hope")) (if (not (null? tests)) (begin (debug:print 1 "Removing tests for run: " runkey " " (db:get-value-by-header run header "runname")) (for-each (lambda (test) (let* ((item-path (db:test-get-item-path test)) (test-name (db:test-get-testname test)) (run-dir (db:test-get-rundir test))) |