fix a bug in tests archi where we tried to open tests/selenium/static/TestSuite.html...
authorAlexey Baturin <[email protected]>
Tue, 30 Mar 2010 22:21:57 +0000 (00:21 +0200)
committerGuillaume (ioguix) de Rorthais <[email protected]>
Tue, 30 Mar 2010 22:21:57 +0000 (00:21 +0200)
build_tests.php

index 91a4d96cb9bf983e1385f0082248e77837e93be2..d4de2960a4f8f62b256df32f875ab3ba2f5c278a 100755 (executable)
        require('./lang/recoded/english.php');
        require('./tests/selenium/testBuilder.class.php');
 
+       /* create directory for tests static files */
+       if(!is_dir($test_static_dir))
+               mkdir($test_static_dir);
+
        /* create the TestSuite.html file with its html header */
        $fd = fopen($testsuite_file, 'w');
        fprintf($fd, "<table border=\"1\">
@@ -46,9 +50,6 @@
                </tr>\n");
        fclose($fd);
 
-       if(!is_dir($test_static_dir))
-               mkdir($test_static_dir);
-
        /* Loop on the servers given in the conf/config.inc.conf file */
        foreach ($conf['servers'] as $server) {
                // Is this server in our list of configured servers?