[Koha-bugs] [Bug 7994] Syntax error in yaml (syspref) files

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 23 15:20:13 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7994

claire.hernandez at biblibre.com <claire.hernandez at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |claire.hernandez at biblibre.c
                   |                            |om

--- Comment #2 from claire.hernandez at biblibre.com <claire.hernandez at biblibre.com> ---
$ prove yaml_valid.t 
yaml_valid.t .. 1/1 
#   Failed test
'../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref
is YAML'
#   at yaml_valid.t line 48.

#   Failed test
'../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
is YAML'
#   at yaml_valid.t line 48.

#   Failed test
'../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref is
YAML'
#   at yaml_valid.t line 48.
yaml_valid.t .. 18/1 # Looks like you planned 1 test but ran 19.
# Looks like you failed 3 tests of 19 run.
yaml_valid.t .. Dubious, test returned 3 (wstat 768, 0x300)
All 1 subtests passed 

Test Summary Report
-------------------
yaml_valid.t (Wstat: 768 Tests: 19 Failed: 18)
  Failed tests:  2-19
  Non-zero exit status: 3
  Parse errors: Bad plan.  You planned 1 tests but ran 19.
Files=1, Tests=19,  1 wallclock secs ( 0.04 usr  0.00 sys +  0.53 cusr  0.02
csys =  0.59 CPU)
Result: FAIL


Should be fixed:


15:17 ~/dev/versions/community/xt (bug_7994 $)$ perl yaml_valid.pl -f
../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref
Testing file:
../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref
KO!
YAML Error: Invalid element in map
   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
   Line: 4
   Document: 1
 at /usr/local/share/perl/5.10.1/YAML/Loader.pm line 352

15:17 ~/dev/versions/community/xt (bug_7994 $)$ perl yaml_valid.pl -f
../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref 
Testing file:
../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
KO!
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 83
   Document: 2
 at /usr/local/share/perl/5.10.1/YAML/Loader.pm line 81

15:19 ~/dev/versions/community/xt (bug_7994 $)$ perl yaml_valid.pl -f
../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref 
Testing file:
../koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref
KO!
YAML Error: Invalid element in map
   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
   Line: 10
   Document: 1
 at /usr/local/share/perl/5.10.1/YAML/Loader.pm line 352

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list