chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f350d69
)
tests: api_with_piece_op: actually use provided pathfrag!
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 27 Feb 2021 20:53:40 +0000
(20:53 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 27 Feb 2021 20:53:40 +0000
(20:53 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apitest/at-otter.rs
patch
|
blob
|
history
diff --git
a/apitest/at-otter.rs
b/apitest/at-otter.rs
index f68713e52cd4211ed97e2d2db42856cf584031c7..4a2e78cc5c2073120c1c0613651d3352861d7bc9 100644
(file)
--- a/
apitest/at-otter.rs
+++ b/
apitest/at-otter.rs
@@
-224,9
+224,9
@@
impl Session {
#[throws(AE)]
fn api_with_piece_op(&mut self, su: &SetupCore, piece: &str,
-
opname
: &str, op: serde_json::Value) {
+
pathfrag
: &str, op: serde_json::Value) {
self.api_piece_op(su, piece, "grab", json!({}))?;
- self.api_piece_op(su, piece,
"m"
, op)?;
+ self.api_piece_op(su, piece,
pathfrag
, op)?;
self.api_piece_op(su, piece, "ungrab", json!({}))?;
}