Code Monkey home page Code Monkey logo

Comments (4)

zaro0508 avatar zaro0508 commented on June 18, 2024

This test was added in PR #1372, do you know anything about it @iainelder ?

from sceptre.

iainelder avatar iainelder commented on June 18, 2024

Yes, I added it. Not sure why it would fail. I'll take a look tomorrow!

from sceptre.

iainelder avatar iainelder commented on June 18, 2024

To follow your repro I need to install pyenv. I'll figure out how to do that this week.

What do you see when you skip the pyenv command and run poetry run tox -e py39?

For me, all the tests pass in tox's py39 environment.

from sceptre.

iainelder avatar iainelder commented on June 18, 2024

Your /bin/sh points to Bash. (It looks like your system is macOS.)

My /bin/sh points to Dash. My system is Ubuntu 20.

The shells write different error messages when they can't find the command.

  • Bash: /bin/bash: missing_command: command not found
  • Dash: /bin/dash: 1: missing_command: not found

The test expects /bin/sh to write Dash's error message.

Your /bin/sh writes Bash's error message, and so the test fails.


All I want to test here is that the hook writes to the standard error stream.

I think I should rewrite it so that it no longer depends on system-defined side effects of a missing command.

A simpler test would just echo text to the standard error stream and check that the same text comes out.

from sceptre.

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.