Last active
August 29, 2015 14:01
-
-
Save martinisoft/7fb2291cb4b73c7ae0c3 to your computer and use it in GitHub Desktop.
Bats test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bats | |
@test "has kept Chef version at 11.10.0" { | |
/opt/chef/bin/chef-client --version | grep '^Chef: 11.10.0$' | |
# This also does not work | |
# sudo -E -u $SUDO_USER bash -l -c "chef-client --version | grep '^Chef: 11.10.0$'" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output