不要怂,就是干,撸起袖子干!

Commit 5e42be82 by Sascha Depold

debugging

1 parent c4f8b06a
Showing with 10 additions and 5 deletions
...@@ -144,17 +144,22 @@ describe(Support.getTestDialectTeaser("Executable"), function() { ...@@ -144,17 +144,22 @@ describe(Support.getTestDialectTeaser("Executable"), function() {
;(function(flags) { ;(function(flags) {
flags.forEach(function(flag) { flags.forEach(function(flag) {
var prepare = function(callback) { var prepare = function(callback) {
exec("rm -rf ./*", { cwd: __dirname + '/tmp' }, function() { exec("rm -rf ./*", { cwd: __dirname + '/tmp' }, function(error, stdout) {
exec("../../bin/sequelize --init", { cwd: __dirname + '/tmp' }, function() { console.log(error, stdout)
exec("cp ../assets/migrations/*-createPerson.js ./migrations/", { cwd: __dirname + '/tmp' }, function() { exec("../../bin/sequelize --init", { cwd: __dirname + '/tmp' }, function(error, stdout) {
exec("cat ../support.js|sed s,/../,/../../, > ./support.js", { cwd: __dirname + '/tmp' }, function() { console.log(error, stdout)
exec("cp ../assets/migrations/*-createPerson.js ./migrations/", { cwd: __dirname + '/tmp' }, function(error, stdout) {
console.log(error, stdout)
exec("cat ../support.js|sed s,/../,/../../, > ./support.js", { cwd: __dirname + '/tmp' }, function(error, stdout) {
console.log(error, stdout)
var dialect = Support.getTestDialect() var dialect = Support.getTestDialect()
, config = require(__dirname + '/config/config.js') , config = require(__dirname + '/config/config.js')
config.sqlite.storage = __dirname + "/tmp/test.sqlite" config.sqlite.storage = __dirname + "/tmp/test.sqlite"
config = _.extend(config, config[dialect], { dialect: dialect }) config = _.extend(config, config[dialect], { dialect: dialect })
exec("echo '" + JSON.stringify(config) + "' > config/config.json", { cwd: __dirname + '/tmp' }, function() { exec("echo '" + JSON.stringify(config) + "' > config/config.json", { cwd: __dirname + '/tmp' }, function(error, stdout) {
console.log(error, stdout)
exec("../../bin/sequelize " + flag, { cwd: __dirname + "/tmp" }, callback) exec("../../bin/sequelize " + flag, { cwd: __dirname + "/tmp" }, callback)
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!