You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
copyFile test suite has 2 tests, Test#001, and Test#002 that fails
copyFile
✗ Test#001 : should throw if source path not found (0.009 sec)
- Expected function to throw an exception.
✗ Test#002 : should throw if src not in plugin directory (0.002 sec)
- Error: EACCES: permission denied, open '/tmp/non_plugin_file'
Not sure if the 2 failures are a side effect of another or not.
Information
This is the full output starting with, omitting successful test lines.
rm: could not remove directory (code EACCES): /tmp/test_plugman/project/src
common platform handler
copyFile
✗ Test#001 : should throw if source path not found (0.009 sec)
- Expected function to throw an exception.
✗ Test#002 : should throw if src not in plugin directory (0.002 sec)
- Error: EACCES: permission denied, open '/tmp/non_plugin_file'
shell.js: internal error
Error: EACCES: permission denied, mkdir '/tmp/test_plugman/project/src/one'
at Object.mkdirSync (fs.js:757:3)
at mkdirSyncRecursive (/home/norman/development/cordova/cordova-android/node_modules/shelljs/src/mkdir.js:11:8)
at mkdirSyncRecursive (/home/norman/development/cordova/cordova-android/node_modules/shelljs/src/mkdir.js:16:3)
at mkdirSyncRecursive (/home/norman/development/cordova/cordova-android/node_modules/shelljs/src/mkdir.js:16:3)
at /home/norman/development/cordova/cordova-android/node_modules/shelljs/src/mkdir.js:63:7
at Array.forEach (<anonymous>)
at Object._mkdir (/home/norman/development/cordova/cordova-android/node_modules/shelljs/src/mkdir.js:48:8)
at Object.mkdir (/home/norman/development/cordova/cordova-android/node_modules/shelljs/src/common.js:186:23)
at UserContext.<anonymous> (/home/norman/development/cordova/cordova-android/spec/unit/pluginHandlers/common.spec.js:57:19)
at QueueRunner.attempt (/home/norman/development/cordova/cordova-android/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:5505:44)
It appears to try to create something under /tmp/, but by default, /tmp is owned by root on my system, therefore in order for this to work, I'd have to use sudo. I don't think requiring sudo should be necessary here.
Command or Code
I recently clean my repo, so after merging upstream (apache/cordova-android/master) into my master I...
Yah this is invalid. My bad. Once I looked into deeper I notice the files complaining were files that haven't been touched for the last 2 years.
It turned out that the files that the test was trying to access/create was already created under a different user, my work user account. Forcefully removing these temp files owned by my other user account allowed the test to run successfully.
Bug Report
Problem
npm test
failsWhat is expected to happen?
npm test
to run successfullyWhat does actually happen?
copyFile
test suite has 2 tests,Test#001
, andTest#002
that failsNot sure if the 2 failures are a side effect of another or not.
Information
This is the full output starting with, omitting successful test lines.
It appears to try to create something under
/tmp/
, but by default,/tmp
is owned by root on my system, therefore in order for this to work, I'd have to usesudo
. I don't think requiringsudo
should be necessary here.Command or Code
I recently clean my repo, so after merging upstream (
apache/cordova-android/master
) into my master I...Environment, Platform, Device
Cordova 9.0.0 (cordova-lib@9.0.1)
cordova-android 8.1.0-dev (current master)
node 10.16.0
Ubuntu 18.04
Version information
See above.
Checklist
The text was updated successfully, but these errors were encountered: