You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/21 00:27:27 UTC

[GitHub] [cordova-android] breautek opened a new issue #814: 8.1.0-dev does not pass tests (EACCES error)

breautek opened a new issue #814: 8.1.0-dev does not pass tests (EACCES error)
URL: https://github.com/apache/cordova-android/issues/814
 
 
   # Bug Report
   
   ## Problem
   
   `npm test` fails
   
   ### What is expected to happen?
   `npm test` to run successfully
   
   
   ### What does actually happen?
   `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
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   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)
   ```
   
   
   ### Command or Code
   I recently clean my repo, so after merging upstream (`apache/cordova-android/master`) into my master I...
   
   ```
   rm -r node_modules
   npm install
   npm test
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   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
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   See above.
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org