summaryrefslogtreecommitdiff
path: root/t/t9800-git-p4-basic.sh
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2012-07-04 13:34:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-06 06:22:00 (GMT)
commit798d598080a68deb4958d69adacee409a23b467b (patch)
tree9b09f5f8899b4f0e9c1917a7feaf1d02db6c44a1 /t/t9800-git-p4-basic.sh
parentc47178d4f0d7331a75f8e0625fd2facd1b5fee4e (diff)
downloadgit-798d598080a68deb4958d69adacee409a23b467b.zip
git-798d598080a68deb4958d69adacee409a23b467b.tar.gz
git-798d598080a68deb4958d69adacee409a23b467b.tar.bz2
git p4 test: refactor marshal_dump
This function will be useful in future tests. Move it to the git-p4 test library. Let it accept an optional argument to pick a certain marshaled object out of the input stream. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9800-git-p4-basic.sh')
-rwxr-xr-xt/t9800-git-p4-basic.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/t/t9800-git-p4-basic.sh b/t/t9800-git-p4-basic.sh
index 07c2e15..b7ad716 100755
--- a/t/t9800-git-p4-basic.sh
+++ b/t/t9800-git-p4-basic.sh
@@ -155,11 +155,6 @@ test_expect_success 'clone bare' '
)
'
-marshal_dump() {
- what=$1
- "$PYTHON_PATH" -c 'import marshal, sys; d = marshal.load(sys.stdin); print d["'$what'"]'
-}
-
# Sleep a bit so that the top-most p4 change did not happen "now". Then
# import the repo and make sure that the initial import has the same time
# as the top-most change.