https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13937

--- Comment #207 from David Cook <[email protected]> ---
Comment on attachment 94109
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94109
Bug 13937: (QA follow-up) Make tests work with YAZ 4 and 5.

Review of attachment 94109:
 --> 
(https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=13937&attachment=94109)
-----------------------------------------------------------------

::: t/db_dependent/Koha/Z3950Responder/GenericSession.t
@@ +82,5 @@
>      $child = fork();
>      if ($child == 0) {
>          my $config_dir = dirname(__FILE__) . '/';
> +        # Copy pqf.properties from etc/z3950
> +        copy($config_dir . '../../../../etc/z3950/pqf.properties', 
> $config_dir . 'pqf.properties') || die "Copying pqf.properties failed: $!";

This seems a little fragile to me. I don't know what we're doing in other
scripts, but it might be worth using https://perldoc.perl.org/FindBin.html
here?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to