Megatest

Check-in [234e173a33]
Login
Overview
Comment:Added busy handler to lock-queue
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.55
Files: files | file ages | folders
SHA1: 234e173a337bc9ef70158e9ee68b61ba122243b7
User & Date: mrwellan on 2013-08-16 13:36:37
Other Links: branch diff | manifest | tags
Context
2013-08-19
09:45
stuck in RUNNING fix check-in: ea809bf922 user: mrwellan tags: v1.55
2013-08-17
00:31
Moved db:test-set-state-status-by-id to mt:test-set-state-status-by-id for better transaction caching check-in: b256e83e85 user: matt tags: v1.55
2013-08-16
13:36
Added busy handler to lock-queue check-in: 234e173a33 user: mrwellan tags: v1.55
2013-08-15
23:07
Re-factored db:roll-up-pass-fail-counts to mt:roll-up-pass-fail-counts check-in: dbbe56fe44 user: matt tags: v1.55
Changes

Modified lock-queue.scm from [41e679e50c] to [343ec1ffa5].

42
43
44
45
46
47
48

49
50
51
52
53
54
55
	  (sqlite3:execute
	   db
	   "CREATE TABLE IF NOT EXISTS runlocks (
              id         INTEGER PRIMARY KEY,
              test_id    INTEGER,
              run_lock   TEXT,
              CONSTRAINT runlock_constraint UNIQUE (run_lock));")))

    db))

(define (lock-queue:set-state db test-id newstate)
  (sqlite3:execute db "UPDATE queue SET state=? WHERE test_id=?;"
		   newstate
		   test-id))








>







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
	  (sqlite3:execute
	   db
	   "CREATE TABLE IF NOT EXISTS runlocks (
              id         INTEGER PRIMARY KEY,
              test_id    INTEGER,
              run_lock   TEXT,
              CONSTRAINT runlock_constraint UNIQUE (run_lock));")))
    (sqlite3:set-busy-handler! db handler)
    db))

(define (lock-queue:set-state db test-id newstate)
  (sqlite3:execute db "UPDATE queue SET state=? WHERE test_id=?;"
		   newstate
		   test-id))

Modified tests/fdktestqa/testqa/megatest.config from [b118157a0d] to [18c20a4e60].

1
2
3

4
5
6
7
8

[setup]
testcopycmd cp --remove-destination -rlv TEST_SRC_PATH/. TEST_TARG_PATH/. >> TEST_TARG_PATH/mt_launch.log 2>> TEST_TARG_PATH/mt_launch.log
runqueue 2


[include ../fdk.config]

[server]
timeout 0.05




>




|
>
1
2
3
4
5
6
7
8
9
10
[setup]
testcopycmd cp --remove-destination -rlv TEST_SRC_PATH/. TEST_TARG_PATH/. >> TEST_TARG_PATH/mt_launch.log 2>> TEST_TARG_PATH/mt_launch.log
runqueue 2
transport http

[include ../fdk.config]

[server]
# timeout 0.05
port 9669

tests/installall/config/megatest.config.dat became a symlink with target [736a5da885].

tests/installall/config/runconfigs.config.dat became a symlink with target [3b8f260acb].