Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
1b67e3ae
Commit
1b67e3ae
authored
Jun 21, 2017
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add invalid profile test to init --profile
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
140de0a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
test/sharness/t0020-init.sh
test/sharness/t0020-init.sh
+7
-0
No files found.
test/sharness/t0020-init.sh
View file @
1b67e3ae
...
...
@@ -127,6 +127,13 @@ test_expect_success "clean up ipfs dir" '
'
# test init profiles
test_expect_success
"'ipfs init --profile' with invalid profile fails"
'
BITS="1024" &&
test_must_fail ipfs init --bits="$BITS" --profile=nonexistent_profile 2> invalid_profile_out
EXPECT="Error: invalid configuration profile: nonexistent_profile" &&
grep "$EXPECT" invalid_profile_out
'
test_expect_success
"'ipfs init --profile' succeeds"
'
BITS="1024" &&
ipfs init --bits="$BITS" --profile=server
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment