mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
updating test for CB-916
This commit is contained in:
@@ -20,6 +20,15 @@ var create_project = spawn(build_path + '/bin/create',
|
||||
package_name,
|
||||
project_name]);
|
||||
|
||||
process.on('uncaughtException', function (err) {
|
||||
console.log('Caught exception: ' + err);
|
||||
spawn('rm', ['-rf', project_path], function(code) {
|
||||
if(code != 0) {
|
||||
console.log("Could not delete project directory");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
create_project.on('exit', function(code) {
|
||||
|
||||
assert.equal(code, 0, 'Project did not get created');
|
||||
@@ -30,9 +39,9 @@ create_project.on('exit', function(code) {
|
||||
});
|
||||
|
||||
// make sure the build directory was cleaned up
|
||||
path.exists(build_path + '/framework/libs', function(exists) {
|
||||
assert(!exists, 'libs directory did not get cleaned up');
|
||||
});
|
||||
// path.exists(build_path + '/framework/libs', function(exists) {
|
||||
// assert(!exists, 'libs directory did not get cleaned up');
|
||||
// });
|
||||
path.exists(build_path + util.format('/framework/assets/cordova-%s.js', version), function(exists) {
|
||||
assert(!exists, 'javascript file did not get cleaned up');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user