Megatest

View Ticket
Login
Ticket Hash: 3f4baca0b1e04661384dd4e035681c3229e183de
Title: echo '(print (string-intersperse (sort (map car (hash-table->alist (read-config "runconfigs.config" (make-hash-table) #f))) string<?) "\n"))' | megatest -repl
Status: Closed Type: Code_Defect
Severity: Minor Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2013-07-11 17:07:25
Version Found In: v1.4403
Description:
### Check targets
make check    TARGET=<target>   # Checks if target is defined
make verify   TARGET=<target>   # Checks if target matches official target list

### Defined targets (from ./configs/mrwellan.runconfigs.config)

Error: (prepare) near "AND": syntax error
#<sqlite3:database>
"SELECT t.rundir FROM tests AS t INNER JOIN runs AS r ON t.run_id=r.id WHERE  AND r.runname LIKE '-testpatt' AND item_path LIKE '%' AND testname LIKE '%' AND t.state LIKE '%' AND t.status LIKE '%'ORDER BY t.event_time ASC;"

        Call history:

        db.scm:627: args:get-arg
        margs.scm:17: hash-table-ref/default
        db.scm:628: args:get-arg
        margs.scm:17: hash-table-ref/default
        db.scm:629: args:get-arg
        margs.scm:17: hash-table-ref/default
        db.scm:630: args:get-arg
        margs.scm:17: hash-table-ref/default
        db.scm:631: args:get-arg
        margs.scm:17: hash-table-ref/default
        db.scm:631: args:get-arg
        margs.scm:17: hash-table-ref/default
        db.scm:636: string-split
        db.scm:632: string-intersperse
        db.scm:638: conc
        db.scm:643: sqlite3#for-each-row                <--
p1271/9/r1.10/beta

<hr /><i>mrwellan added on 2013-07-11 23:07:25 UTC:</i><br />
Running the pasted command worked fine in v1.5508