Add gui to cellApps for intent-perf app

Change-Id: If84467818ce22a8ad6a7f7e60d1ddb8ee2510dd9
diff --git a/TestON/tests/SCPF/SCPFintentEventTp/SCPFintentEventTp.params b/TestON/tests/SCPF/SCPFintentEventTp/SCPFintentEventTp.params
index 955be53..a34a70a 100644
--- a/TestON/tests/SCPF/SCPFintentEventTp/SCPFintentEventTp.params
+++ b/TestON/tests/SCPF/SCPFintentEventTp/SCPFintentEventTp.params
@@ -11,7 +11,7 @@
 
     <ENV>
     <cellName>intentTP</cellName>
-    <cellApps>drivers,null</cellApps>
+    <cellApps>drivers,null,gui</cellApps>
     </ENV>
 
     <SCALE>1,3,3,5,5</SCALE>
diff --git a/TestON/tests/SCPF/SCPFintentEventTp/SCPFintentEventTp.py b/TestON/tests/SCPF/SCPFintentEventTp/SCPFintentEventTp.py
index 1911942..bee0396 100644
--- a/TestON/tests/SCPF/SCPFintentEventTp/SCPFintentEventTp.py
+++ b/TestON/tests/SCPF/SCPFintentEventTp/SCPFintentEventTp.py
@@ -163,14 +163,15 @@
             main.log.alarm( "{}-node with {} neighbor: {}/s < {}/s".format( main.Cluster.numCtrls,
                                                                             neighbors, tp, threshold ) )
 
-        with open( main.dbFileName, "a" ) as resultDB:
-            for nodes in range( main.Cluster.numCtrls ):
-                resultString = "'" + main.commit + "',"
-                resultString += "'1gig',"
-                resultString += str( main.Cluster.numCtrls ) + ","
-                resultString += "'baremetal" + str(nodes + 1) + "',"
-                resultString += neighbors + ","
-                resultString += result[ main.Cluster.active( nodes ).ipAddress ] + ","
-                resultString += str( 0 ) + "\n"  # no stddev
-                resultDB.write( resultString )
-        resultDB.close()
+        if result:
+            with open( main.dbFileName, "a" ) as resultDB:
+                for nodes in range( main.Cluster.numCtrls ):
+                    resultString = "'" + main.commit + "',"
+                    resultString += "'1gig',"
+                    resultString += str( main.Cluster.numCtrls ) + ","
+                    resultString += "'baremetal" + str(nodes + 1) + "',"
+                    resultString += neighbors + ","
+                    resultString += result[ main.Cluster.active( nodes ).ipAddress ] + ","
+                    resultString += str( 0 ) + "\n"  # no stddev
+                    resultDB.write( resultString )
+            resultDB.close()