Issue Details (XML | Word | Printable)

Key: MBS-4738
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Kuno Woudt
Reporter: Kuno Woudt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

script/create_test_db.sh does not create a test database.

Created: 18/May/12 10:19 AM   Updated: 09/Jul/12 07:40 AM   Resolved: 09/Jul/12 07:40 AM
Component/s: Scripts
Affects Version/s: Schema change, 2012-05-15
Fix Version/s: Bug fixes, 2012-07-09


 Description  « Hide

The 15 may schema change release has broken script/create_test_db.sh, in the sense that it doesn't actually create a test database (as you would expect from the name).

A test database now has to be created by InitDb.pl, but that file isn't set up to do anything other than work on the READWRITE database.

This has made it cumbersome to start developing on musicbrainz on a fresh machine. (once the test database has been created, script/create_test_db.sh can be used without trouble to reset the database – there is usually no need to ever remove the test database again).



Sort Order: Ascending order - Click to sort in descending order
Kuno Woudt added a comment - 18/May/12 10:24 AM

I've made an attempt at making the database to operate on a commandline argument in admin/InitDb.pl. This works, but I haven't updated script/create_test_db.sh to check if the database exists and use InitDb.pl when it doesn't.

This work is pushed as "mbs-4738-warp".


Kuno Woudt added a comment - 29/Jun/12 01:51 PM

Shipped to beta from 'mbs-4738' branch.