aboutsummaryrefslogtreecommitdiff
path: root/test_pbuilder-satisfydepends-funcs
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2009-12-12 12:05:56 +0100
committerLoïc Minier <lool@dooz.org>2009-12-12 12:05:56 +0100
commit9252a478b47da970876cd0c827b100ba112395cd (patch)
tree0b829f35405301b754dff951ecc6dcda287979b0 /test_pbuilder-satisfydepends-funcs
parent70d67648141b9669e31bd2c5864a3fa7546552d8 (diff)
downloadpbuilder-9252a478b47da970876cd0c827b100ba112395cd.tar
pbuilder-9252a478b47da970876cd0c827b100ba112395cd.tar.gz
Remove tempfile at the end; should be in builddir
Remove tempfile at the end of the test helper function; add note that it should really be created in the build dir instead
Diffstat (limited to 'test_pbuilder-satisfydepends-funcs')
-rwxr-xr-xtest_pbuilder-satisfydepends-funcs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test_pbuilder-satisfydepends-funcs b/test_pbuilder-satisfydepends-funcs
index a2e8fd1..1cf2dc6 100755
--- a/test_pbuilder-satisfydepends-funcs
+++ b/test_pbuilder-satisfydepends-funcs
@@ -6,6 +6,7 @@
# testsuite to test pbuilder-satisfydepends-checkparams.
test_get_control_re() {
+ # TODO move to build dir
CONTROL=$(tempfile)
cat <<EOF > "$CONTROL"
Source: amule
@@ -27,6 +28,7 @@ Desctiption: test
wow
EOF
get_control_re "$CONTROL" "build-(depends|depends-indep)"
+ rm -f "$CONTROL"
}
expect_output " autotools-dev, debhelper, quilt, libwxgtk2.8-dev
test, test1, test2, test3 | test4, test5" test_get_control_re