There is a syntax error in the test cases. I don't really know how to fix it or I would. This is (not surprisingly) breaking the package build for 3.10.0, so could someone who knows what's going on here please take a look ASAP. http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9142 $ KOHA_CONF=~/koha-dev/etc/koha-conf.xml t/Calendar.t 1..22 ok 1 - use Koha::Calendar; ok 2 - use C4::Calendar; String found where operator expected at t/Calendar.t line 130, near "subtest '\'Datedue\' tests'" (Do you need to predeclare subtest?) "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 131. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 134. "my" variable $dt masks earlier declaration in same scope at t/Calendar.t line 135. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 137. "my" variable $dt masks earlier declaration in same scope at t/Calendar.t line 137. "my" variable $one_day_dur masks earlier declaration in same scope at t/Calendar.t line 137. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 141. "my" variable $dt masks earlier declaration in same scope at t/Calendar.t line 141. "my" variable $two_day_dur masks earlier declaration in same scope at t/Calendar.t line 141. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 145. "my" variable $test_dt masks earlier declaration in same scope at t/Calendar.t line 145. "my" variable $seven_day_dur masks earlier declaration in same scope at t/Calendar.t line 145. String found where operator expected at t/Calendar.t line 151, near "subtest '\'Calendar\' tests'" (Do you need to predeclare subtest?) "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 152. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 155. "my" variable $dt masks earlier declaration in same scope at t/Calendar.t line 156. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 158. "my" variable $dt masks earlier declaration in same scope at t/Calendar.t line 158. "my" variable $one_day_dur masks earlier declaration in same scope at t/Calendar.t line 158. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 162. "my" variable $test_dt masks earlier declaration in same scope at t/Calendar.t line 162. "my" variable $seven_day_dur masks earlier declaration in same scope at t/Calendar.t line 162. String found where operator expected at t/Calendar.t line 168, near "subtest '\'Days\' tests'" (Do you need to predeclare subtest?) "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 169. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 172. "my" variable $dt masks earlier declaration in same scope at t/Calendar.t line 173. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 175. "my" variable $dt masks earlier declaration in same scope at t/Calendar.t line 175. "my" variable $one_day_dur masks earlier declaration in same scope at t/Calendar.t line 175. "my" variable $cal masks earlier declaration in same scope at t/Calendar.t line 179. "my" variable $test_dt masks earlier declaration in same scope at t/Calendar.t line 179. "my" variable $seven_day_dur masks earlier declaration in same scope at t/Calendar.t line 179. syntax error at t/Calendar.t line 130, near "subtest '\'Datedue\' tests'" syntax error at t/Calendar.t line 148, near "}" syntax error at t/Calendar.t line 165, near "}" syntax error at t/Calendar.t line 182, near "}" Execution of t/Calendar.t aborted due to compilation errors. # Looks like you planned 22 tests but ran 2. # Looks like your test exited with 255 just after 2. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
Robin Sheat schreef op ma 26-11-2012 om 17:54 [+1300]:
There is a syntax error in the test cases. I don't really know how to fix it or I would.
This is (not surprisingly) breaking the package build for 3.10.0, so could someone who knows what's going on here please take a look ASAP.
So the issue is that the test case was written against a newer version of Test::More than is shipped in Debian stable. We shouldn't do that unless it's totally, completely necessary. Which for a test case, it isn't. So I think this should remain as an open bug, if we assume that Debian stable is our baseline. We've drifted from that a little bit (and in one case, making it very hard to legally distribute Koha for use with Solr), but it's really something we should avoid. In the meantime, I've removed that test case from the package build to allow it to continue. -- Robin Sheat Catalyst IT Ltd. ✆ +64 4 803 2204 GPG: 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D
participants (1)
-
Robin Sheat