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
e6201151
Commit
e6201151
authored
Jan 15, 2016
by
Christian Couder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t0081: fix greping pin type
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
parent
7e8052ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test/bin/ipfs-pin-stat
test/bin/ipfs-pin-stat
+3
-3
test/sharness/t0081-repo-pinning.sh
test/sharness/t0081-repo-pinning.sh
+1
-1
No files found.
test/bin/ipfs-pin-stat
View file @
e6201151
...
...
@@ -19,12 +19,12 @@ if [ "$?" -eq 0 ]; then
fi
ipfs pin
ls
--type
=
recursive |
grep
"
$path
"
>
/dev/null
[
"
$?
"
-eq
0
]
&&
echo
"
$path
pinned recursively"
[
"
$?
"
-eq
0
]
&&
echo
"
$path
pinned recursive
-
ly"
ipfs pin
ls
--type
=
indirect |
grep
"
$path
"
>
/dev/null
[
"
$?
"
-eq
0
]
&&
echo
"
$path
pinned indirectly"
[
"
$?
"
-eq
0
]
&&
echo
"
$path
pinned indirect
-
ly"
ipfs pin
ls
--type
=
direct |
grep
"
$path
"
>
/dev/null
[
"
$?
"
-eq
0
]
&&
echo
"
$path
pinned directly"
[
"
$?
"
-eq
0
]
&&
echo
"
$path
pinned direct
-
ly"
exit
0
test/sharness/t0081-repo-pinning.sh
View file @
e6201151
...
...
@@ -17,7 +17,7 @@ test_pin_flag() {
echo
"test_pin_flag"
$@
ipfs-pin-stat
"
$object
"
|
grep
"
$ptype
"
ipfs-pin-stat
"
$object
"
|
e
grep
"
\b
$ptype
\b
"
actual
=
$?
if
[
"
$expect
"
=
"true"
]
;
then
...
...
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