mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user