Index: tools/testrunner/server/work_handler.py |
diff --git a/tools/testrunner/server/work_handler.py b/tools/testrunner/server/work_handler.py |
index 9e61af8227adaff2c1c314de77f1d0a3131ef44d..80f01781ebb37427c20ac4210dfe3638f15ddcfb 100644 |
--- a/tools/testrunner/server/work_handler.py |
+++ b/tools/testrunner/server/work_handler.py |
@@ -128,6 +128,7 @@ class WorkHandler(SocketServer.BaseRequestHandler): |
return True |
def _ApplyPatch(self, patch): |
+ if not patch: return True # Just skip if the patch is empty. |
patchfilename = "_dtest_incoming_patch.patch" |
with open(patchfilename, "w") as f: |
f.write(patch) |