summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions-sctp.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-16 12:05:09 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-16 12:05:09 -0400
commit0e0ff3d00bdb3f466af9b8183b2927fd9f5109f6 (patch)
tree615f18da1f66efb833b555c025e2c7816b233aa2 /pts-core/functions/pts-functions-sctp.php
parentb85db9cb3decd1459c90bbc836b6b268d69de2fe (diff)
downloadphoronix-test-suite-upstream-0e0ff3d00bdb3f466af9b8183b2927fd9f5109f6.tar.gz
phoronix-test-suite-upstream-0e0ff3d00bdb3f466af9b8183b2927fd9f5109f6.tar.xz
phoronix-test-suite-upstream-0e0ff3d00bdb3f466af9b8183b2927fd9f5109f6.zip
pts-core: Clean / optimize pts-core code / run PEAR's PHP_CodeSniffer
and clean up most errors and warnings
Diffstat (limited to 'pts-core/functions/pts-functions-sctp.php')
-rw-r--r--pts-core/functions/pts-functions-sctp.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions-sctp.php b/pts-core/functions/pts-functions-sctp.php
index f7d7256..cdbadf3 100644
--- a/pts-core/functions/pts-functions-sctp.php
+++ b/pts-core/functions/pts-functions-sctp.php
@@ -35,12 +35,18 @@ function generate_sctp_layer()
$test_directory = sctp_test_directory();
if(!$xml_parser->isDefined(P_TEST_TITLE))
+ {
pts_exit("\n" . SCTP_FILE . " is not a valid self-contained test profile!\n");
+ }
if(!is_dir(PTS_TEMP_DIR . "sctp/"))
+ {
mkdir(PTS_TEMP_DIR . "sctp/");
+ }
if(!is_dir($test_directory))
+ {
mkdir($test_directory);
+ }
$sctp_stages = array("install" => P_TEST_SCTP_INSTALLSCRIPT, "downloads" => P_TEST_SCTP_DOWNLOADS, "parse-results" => P_TEST_SCTP_RESULTSPARSER, "pre" => P_TEST_SCTP_PRERUN, "post" => P_TEST_SCTP_POSTRUN);
foreach($sctp_stages as $stage_file => $stage_point)