Skip to content

Commit

Permalink
Merge pull request #138 from larsewi/CFE-4071-follow-ups
Browse files Browse the repository at this point in the history
CFE-4071: Follow ups
  • Loading branch information
larsewi authored Oct 28, 2022
2 parents db900de + f9ecf26 commit 5dbcf89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cfbs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def main() -> int:

if args.masterfiles and args.command != "init":
user_error(
"The option --masterfiles is only for cfbs init, not cfbs %s" % args.command
"The option --masterfiles is only for 'cfbs init', not 'cfbs %s'"
% args.command
)

if args.non_interactive and args.command not in (
Expand Down
1 change: 1 addition & 0 deletions tests/shell/028_init_masterfiles_version_3.18.2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ rm -rf .git
cfbs --non-interactive init --masterfiles=3.18.2
grep '"name": "masterfiles"' cfbs.json
grep '"version": "3.18.2"' cfbs.json
grep '"commit": "a87b7fea6f7a88808b327730a4ba784a3dc664eb"' cfbs.json
cfbs build
4 changes: 4 additions & 0 deletions tests/shell/029_init_masterfiles_version_3.18.1-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ rm -rf .git
cfbs --non-interactive init --masterfiles=3.18.1-1
grep '"name": "masterfiles"' cfbs.json
grep '"version": "3.18.1-1"' cfbs.json
grep '"commit": "b6e9eacc65c797f4c2b4a59056293636c320d0c9"' cfbs.json
cfbs build
cfbs --non-interactive update
! grep '"version": "3.18.1-1"' cfbs.json
! grep '"commit": "b6e9eacc65c797f4c2b4a59056293636c320d0c9"' cfbs.json

0 comments on commit 5dbcf89

Please sign in to comment.