diff options
author | Brad King <brad.king@kitware.com> | 2016-10-25 13:08:49 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-10-25 13:08:49 (GMT) |
commit | 9a399c27a8c6e9a264cbabf9bb3b091b2e74a71f (patch) | |
tree | 020b82196e1c74ed6ac066631babe3560ba8cb51 /Tests | |
parent | c1a520513d4c7504fc9e9e4d9e56acc24569f490 (diff) | |
parent | 9b8dc79cc84d12c1e661ca3cd77b773b463508d7 (diff) | |
download | CMake-9a399c27a8c6e9a264cbabf9bb3b091b2e74a71f.zip CMake-9a399c27a8c6e9a264cbabf9bb3b091b2e74a71f.tar.gz CMake-9a399c27a8c6e9a264cbabf9bb3b091b2e74a71f.tar.bz2 |
Merge topic 'cmake-server-message-quoting'
9b8dc79c cmake-server: Change message wrapper to avoid ambiguity with content
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Server/cmakelib.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/Server/cmakelib.py b/Tests/Server/cmakelib.py index 94384eb..d11431d 100644 --- a/Tests/Server/cmakelib.py +++ b/Tests/Server/cmakelib.py @@ -46,11 +46,11 @@ def waitForRawMessage(cmakeCommand): stdoutdata += stdoutdataLine.decode('utf-8') else: break - begin = stdoutdata.find("[== CMake Server ==[\n") - end = stdoutdata.find("]== CMake Server ==]") + begin = stdoutdata.find('[== "CMake Server" ==[\n') + end = stdoutdata.find(']== "CMake Server" ==]') if (begin != -1 and end != -1): - begin += len("[== CMake Server ==[\n") + begin += len('[== "CMake Server" ==[\n') payload = stdoutdata[begin:end] if print_communication: print("\nSERVER>", json.loads(payload), "\n") @@ -59,9 +59,9 @@ def waitForRawMessage(cmakeCommand): def writeRawData(cmakeCommand, content): writeRawData.counter += 1 payload = """ -[== CMake Server ==[ +[== "CMake Server" ==[ %s -]== CMake Server ==] +]== "CMake Server" ==] """ % content rn = ( writeRawData.counter % 2 ) == 0 |