Skip to content

test-unset-prereq-v1

parent 1f1cddd558b54bb0ce19c8ace353fd07b758510d
author Johannes Schindelin <johannes.schindelin@gmx.de> 1524954034 +0200
committer Johannes Schindelin <johannes.schindelin@gmx.de> 1524954255 +0200

While working on the --convert-graft-file test, I missed that I was
relying on the GPG prereq, by using output of test cases that were only
run under that prereq.

For debugging, it was really convenient to force that prereq to be
unmet, but there was no easy way to do that. So I came up with a way,
and this patch reflects the cleaned-up version of that way.

For convenience, the following two methods are now supported ways to
pretend that a prereq is not met:

	test_set_prereq !GPG

and

	test_unset_prereq GPG

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Submitted-As: https://public-inbox.org/git/b94af009c1bc9c9b96d977b1c5775ff73669138f.1524954814.git.johannes.schindelin@gmx.de
Assets 2