Comments (8)
I think this is because the script is in the 'shared folder' on the host machine, so the permission can't be set to be executable.
from civicrm-buildkit-vagrant.
John - you should be able to set the executable permission on phpunit. I am on a Windows machine so it is kindda funky to do that, appreciate if you could do a PR on this. Thanks.
from civicrm-buildkit-vagrant.
Hmn, I'm using a Windows host as well. Are you able to get the tests to run on the guest after using vagrant ssh?
(I've been trying to run the tests from the host instead, but running into a different issue ;] )
from civicrm-buildkit-vagrant.
John - then please just do a 'chmod +x phpunit' from the vagrant VM and
you should be good to go.
------ Original Message ------
From: "John Kingsnorth" [email protected]
To: "civicrm/civicrm-buildkit-vagrant"
[email protected]
Cc: "nganivet" [email protected]
Sent: 3/30/2016 11:54:32 AM
Subject: Re: [civicrm/civicrm-buildkit-vagrant] Permissions for phpunit
(#2)
Hmn, I'm using a Windows host as well. Are you able to get the tests to
run on the guest after using vagrant ssh?
(I've been trying to run the tests from the host instead, but running
into a different issue ;] )—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
from civicrm-buildkit-vagrant.
(a) IIRC, there was something surprising about how vagrant handles executable permissions on shared volumes. For example, it has default permissions that apply across the entire volume. If you set different permissions on a file, then they'll work under-the-hood... but they won't look right with ls -l
(This was in OSX a month ago.) So +1 @nganivet try chmod +x phpunit
from inside the VM.
(b) You might try calling phpunit with a different command:
# Normal/old
cd civicrm/tools
./scripts/phpunit CRM_Core_RegionTest
# Alternative #1
cd civicrm/tools
php ./scripts/phpunit CRM_Core_RegionTest
# Alternative #2
cd civicrm
env CIVICRM_UF=UnitTests phpunit4 tests/phpunit/CRM/Core/RegionTest.php
from civicrm-buildkit-vagrant.
Yeh, I ran into the problem that @totten mentions yesterday. If I chmod +x phpunit
then the file permissions looked unchanged with ls -l
.
I thought I'd tried alternative 1 but that does seem to work. Thanks @totten . Maybe the permission change works under the hood, as you suggest, but not when calling it directly.
This ticket looks related, but I haven't waded through it yet (though it boasts 'fixed').
from civicrm-buildkit-vagrant.
@JKingsnorth Is this still an issue?
from civicrm-buildkit-vagrant.
It seems to be working now @mattwire !
from civicrm-buildkit-vagrant.
Related Issues (20)
- phpunit4 PHP Fatal error: Cannot redeclare
- Problem to try $drush cr or any drush command HOT 3
- Is this project still supported? HOT 9
- .dev sites on google chrome HOT 2
- Cannot connect to new install - .dev domain issue HOT 2
- Configuration Check failed
- PHP 7 HOT 4
- xDebug
- download.sh script missing error
- can't even find civi.dev with IE HOT 2
- use .test gTLD rather than .dev
- dnsmasq fails configuration on provision
- Permissions issue on building backdrop sites
- Issue Installing Civi with Vagrant
- Internal DNS resolution flaky, cause of phpmyadmin not installing
- Install error: Cannot access directory '/home/vagrant/.amp/log/'
- Install error: composer not found, segfault on pecl install xdebug
- Install error: /tmp/vagrant-shell: line 534: /srv/www/phpcs/scripts/phpcs: No such file or directory
- Vagrant triggers plugin warning
- A customization command failed: setting amount of memory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from civicrm-buildkit-vagrant.