From a125f24d29fd8275be7283a2edca9abc125703d7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 1 Mar 2012 23:40:02 -0600 Subject: Allow --options to be added by the user in Python --- test/baseline/feat-option_py.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/baseline/feat-option_py.test (limited to 'test/baseline/feat-option_py.test') diff --git a/test/baseline/feat-option_py.test b/test/baseline/feat-option_py.test new file mode 100644 index 00000000..a67b27c3 --- /dev/null +++ b/test/baseline/feat-option_py.test @@ -0,0 +1,14 @@ +python + def option_pyfirst(context): + print "In --pyfirst (from %s)" % context + + def option_pysecond(context, val): + print "In --pysecond=%s (from %s)" % (val, context) + +--pyfirst +--pysecond Hey + +test reg +In --pyfirst (from $sourcepath/test/baseline/feat-option_py.test) +In --pysecond=Hey (from $sourcepath/test/baseline/feat-option_py.test) +end test -- cgit v1.2.3 From 5c57eff64a0f6378c7be81369afb831769529a79 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 30 Mar 2012 04:49:19 -0500 Subject: Simplify feat-option_py.test --- test/baseline/feat-option_py.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/baseline/feat-option_py.test') diff --git a/test/baseline/feat-option_py.test b/test/baseline/feat-option_py.test index a67b27c3..1b2a0c79 100644 --- a/test/baseline/feat-option_py.test +++ b/test/baseline/feat-option_py.test @@ -9,6 +9,6 @@ python --pysecond Hey test reg -In --pyfirst (from $sourcepath/test/baseline/feat-option_py.test) -In --pysecond=Hey (from $sourcepath/test/baseline/feat-option_py.test) +In --pyfirst (from $FILE) +In --pysecond=Hey (from $FILE) end test -- cgit v1.2.3