summaryrefslogtreecommitdiffstats
path: root/Website/mutexSmartTest.php
diff options
context:
space:
mode:
authorTriatmoko2011-11-15 01:37:35 +0100
committerTriatmoko2011-11-15 01:37:35 +0100
commit2b850a5d8d9c3d0a76e05542636657647351d4b1 (patch)
treec94c3b6ad0eccb119254032fe7cd2471ef69ebe4 /Website/mutexSmartTest.php
parentMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-2b850a5d8d9c3d0a76e05542636657647351d4b1.tar.gz
gsm-selftest-2b850a5d8d9c3d0a76e05542636657647351d4b1.tar.xz
gsm-selftest-2b850a5d8d9c3d0a76e05542636657647351d4b1.zip
Cleaning the unused commenting from the first auhtor!
Diffstat (limited to 'Website/mutexSmartTest.php')
-rw-r--r--Website/mutexSmartTest.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/Website/mutexSmartTest.php b/Website/mutexSmartTest.php
index cfb8916..5ce264a 100644
--- a/Website/mutexSmartTest.php
+++ b/Website/mutexSmartTest.php
@@ -32,10 +32,6 @@ if ($locking == '1') //1 means nobody is on the website
$lockMe = Lock($nameOfLock,$timeToKeepTheMutex); //Set a mutex for the webpage
if ($lockMe == '1') //1 means a successful lock
{
- // read posted data and add them to the database
-// echo 'WE had errors: '. $errorAdding;
- //stuff to do here
- //check if the software is running!
$softwareLock = 'SoftwareStarted';
$taskAmount= 1;
$numberofTask =0;
@@ -57,10 +53,9 @@ if ($locking == '1') //1 means nobody is on the website
fclose($startApp);
}
- //exec("/usr/bin/python /var/www/tricode/gsmselftest2.py > /dev/null 2>&1 &"); //start the software in background and don't wait for any output
- sleep(6); //sleep half second till the software starts
- //the software should be running already and set the lock, now we test it and then connect to it!
-
+ sleep(6); //sleep till the software starts
+
+ //the software should be running already and set the lock, now we test it and then connect to it!
$softwareRunning1 = isLocked($softwareLock);
if($softwareRunning1 == '0') //Software running and waiting for connection!
{
@@ -148,7 +143,6 @@ if ($locking == '1') //1 means nobody is on the website
$callFrom = strtoupper($dataForTable[1]);
$callTo = strtoupper($dataForTable[2]);
$testStatus = strtoupper($dataForTable[3]);
- //ADD HERE THE TEST CASES BUT MAKE IT INSIDE OF A FILE (e.q. include 'testing.php'); HERE I PUT IT ONLY FOR EXAMPLE PURPOSES!
if($callFrom == 'SIP' || $callTo == 'SIP')
{
@@ -895,7 +889,6 @@ if ($locking == '1') //1 means nobody is on the website
<td> ' . $dataForTable[4] . ' </td>
<td>' . $dataForTable[3] . '</td>
</tr>';
- //echo $received . '<br>';
echo str_repeat("\n",7024);
flush();
usleep(100);
@@ -927,8 +920,6 @@ if ($locking == '1') //1 means nobody is on the website
echo 'We have an unknown error! Refresh te web page!';
}
- //$release = ReleaseLock($nameOfLock);
- //echo $release . "<br>";
}
else
{