Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

envs in if: - take 2 #412

Merged
merged 8 commits into from
Nov 12, 2020
Merged

envs in if: - take 2 #412

merged 8 commits into from
Nov 12, 2020

Conversation

torbjornvatn
Copy link
Contributor

@torbjornvatn torbjornvatn commented Nov 9, 2020

I discovered that table based tests must have define assert := a.New(t) inside the t.Run internal func.
If not, the assert wasn't actually asserting correctly 🙈

This lead to the discovery of some test cases that wasn't actually working.
I had to make several changes to the EvalBool function support all the permutations of negations, envs and interpolations

Fixes #387

@torbjornvatn torbjornvatn marked this pull request as ready for review November 9, 2020 20:44
Copy link
Contributor

@cplee cplee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! one change requested...

@@ -5,22 +5,22 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/opencontainers/runc/Godeps/_workspace/src/github.com/Sirupsen/logrus"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be removed?

@torbjornvatn
Copy link
Contributor Author

@cplee the stray logrus import is removed now.

@cplee cplee merged commit 3f4998a into nektos:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align "if: ${{ always() }}" step behaviour to GH
2 participants