[Pkg-libvirt-commits] [libguestfs] 35/59: php: remove the custom "env" loading in tests

Hilko Bengen bengen at moszumanska.debian.org
Thu Mar 20 23:05:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit e411cf8269b1c8b1334500ebd80e5348fc0b0c8c
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Wed Mar 12 19:29:56 2014 +0100

    php: remove the custom "env" loading in tests
    
    Other than being too late for changing environment variables like
    LD_LIBRARY_PATH, now it is no more needed.
---
 php/extension/guestfs_php_001.phpt | 14 --------------
 php/extension/guestfs_php_002.phpt | 14 --------------
 php/extension/guestfs_php_003.phpt | 14 --------------
 3 files changed, 42 deletions(-)

diff --git a/php/extension/guestfs_php_001.phpt b/php/extension/guestfs_php_001.phpt
index 65723a6..013ebb5 100644
--- a/php/extension/guestfs_php_001.phpt
+++ b/php/extension/guestfs_php_001.phpt
@@ -2,20 +2,6 @@
 Load the module and create a handle.
 --FILE--
 <?php
-
-// See comment in php/run-php-tests.sh.
-//putenv ('LIBGUESTFS_DEBUG=1');
-if (! $fp = fopen ("env", "r")) {
-  die ("Error: cannot open environment file 'env'\n");
-}
-while (($buffer = fgets ($fp)) != false) {
-  putenv (chop ($buffer, "\n"));
-}
-if (!feof ($fp)) {
-  die ("Error: unexpected failure of fgets\n");
-}
-fclose ($fp);
-
 $g = guestfs_create ();
 if ($g == false) {
   echo ("Failed to create guestfs_php handle.\n");
diff --git a/php/extension/guestfs_php_002.phpt b/php/extension/guestfs_php_002.phpt
index e4d3faf..91b2067 100644
--- a/php/extension/guestfs_php_002.phpt
+++ b/php/extension/guestfs_php_002.phpt
@@ -2,20 +2,6 @@
 Launch the appliance and run basic tests.
 --FILE--
 <?php
-
-// See comment in php/run-php-tests.sh.
-//putenv ('LIBGUESTFS_DEBUG=1');
-if (! $fp = fopen ("env", "r")) {
-  die ("Error: cannot open environment file 'env'\n");
-}
-while (($buffer = fgets ($fp)) != false) {
-  putenv (chop ($buffer, "\n"));
-}
-if (!feof ($fp)) {
-  die ("Error: unexpected failure of fgets\n");
-}
-fclose ($fp);
-
 $g = guestfs_create ();
 if ($g == false) {
   echo ("Failed to create guestfs_php handle.\n");
diff --git a/php/extension/guestfs_php_003.phpt b/php/extension/guestfs_php_003.phpt
index 8cb78da..e268e98 100644
--- a/php/extension/guestfs_php_003.phpt
+++ b/php/extension/guestfs_php_003.phpt
@@ -2,20 +2,6 @@
 Check function with optional arguments.
 --FILE--
 <?php
-
-// See comment in php/run-php-tests.sh.
-//putenv ('LIBGUESTFS_DEBUG=1');
-if (! $fp = fopen ("env", "r")) {
-  die ("Error: cannot open environment file 'env'\n");
-}
-while (($buffer = fgets ($fp)) != false) {
-  putenv (chop ($buffer, "\n"));
-}
-if (!feof ($fp)) {
-  die ("Error: unexpected failure of fgets\n");
-}
-fclose ($fp);
-
 $g = guestfs_create ();
 if ($g == false) {
   echo ("Failed to create guestfs_php handle.\n");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list