summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-04-18 18:32:13 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-04-18 18:33:45 +0200
commite117fdaa70f70b7d31de20b7de4b8bbf987a122f (patch)
tree5400fdbcb1afda93b3769b52dd1e160b584797c1 /tests
parent4cee962a0621095346a4db7cc9189dc7f59fd6e1 (diff)
Add helper function to cat an entry from the store
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils.sh b/tests/utils.sh
index 8babfd21..6fc23ad8 100644
--- a/tests/utils.sh
+++ b/tests/utils.sh
@@ -42,6 +42,10 @@ imag-call-binary() {
$bin $flags $*
}
+cat_entry() {
+ cat ${STORE}/$1
+}
+
reset_store() {
rm -r "${STORE}"
}