Git Product home page Git Product logo

Comments (8)

peterabbott avatar peterabbott commented on July 21, 2024

The relevant bit is that the concatenated script that is executed includes some functions

# Check whether a command exists - returns 0 if it does, 1 if it does not
exists() {
...
}
...

The error that comes back is

'      bash: -c: line 34: syntax error near unexpected token `{
'      bash: -c: line 34: `exists() {

And line 34 correlates to the first function block in the full generated script.

Off to the release notes for Test Kitchen to see what has changed....

from kitchen-puppet.

grubernaut avatar grubernaut commented on July 21, 2024

Awesome, thanks for the heads up!

from kitchen-puppet.

neillturner avatar neillturner commented on July 21, 2024

it useful to run with -l debug on the command and then we see the traceback. usualy these issues are simple to fix once we ca see the cause of the issue. the changelog on kichen 1.7.0 doesn't suggest any reason.

from kitchen-puppet.

peterabbott avatar peterabbott commented on July 21, 2024

That didn't give me any other clues other than the full script it was running. If I copy that on to the VM and run it goes through fine. At a guess maybe there is something with the variable interpolation??

The bit of script it complains about is coming from the download helpers block that is appended to the provision script for the puppet install check (https://github.com/test-kitchen/test-kitchen/blob/master/support/download_helpers.sh) But that is probably a red herring and is likely something before that.

I can post the full output tomorrow when I get a chance. to see if anybody else can see something obvious

from kitchen-puppet.

neillturner avatar neillturner commented on July 21, 2024

well i cannot tell if the bug is in test-kitchen itself or in the kitchen-puppet plugin. the download_helpers are part of test-kitchen itself. test-kitchen is responsible for uploading the files to the remote server before kitchen-puppet is called the install and converge

from kitchen-puppet.

neillturner avatar neillturner commented on July 21, 2024

I tested on test-kitchen 1.7.0 with Centos 7.0 on AWS and couldn't get the problem.

from kitchen-puppet.

peterabbott avatar peterabbott commented on July 21, 2024

Just tested with test-kitchen 1.7.3 on Docker and Vagrant/VB and seems to work. Rolling back to 1.7.0 and I still get the same error as before.

I wonder if there was a transitive dependency that has since been updated that resolved the issue??

On another happy note, the latest beta of Docker for Mac now plays nicely with Test Kitchen, but that is a different topic :)

from kitchen-puppet.

neillturner avatar neillturner commented on July 21, 2024

I think we will call it test-kitchen problem if it works on test-kitchen 1.7.3.
test-kitchen are in a bit of bother as they still have 45 outstanding pull requests and 123 open issues.

from kitchen-puppet.

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.