Coder Social home page Coder Social logo

Comments (8)

JKingsnorth avatar JKingsnorth commented on August 31, 2024

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.

nganivet avatar nganivet commented on August 31, 2024

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.

JKingsnorth avatar JKingsnorth commented on August 31, 2024

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.

nganivet avatar nganivet commented on August 31, 2024

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.

totten avatar totten commented on August 31, 2024

(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.

JKingsnorth avatar JKingsnorth commented on August 31, 2024

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.

mattwire avatar mattwire commented on August 31, 2024

@JKingsnorth Is this still an issue?

from civicrm-buildkit-vagrant.

JKingsnorth avatar JKingsnorth commented on August 31, 2024

It seems to be working now @mattwire !

from civicrm-buildkit-vagrant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.