-
Notifications
You must be signed in to change notification settings - Fork 844
Open
Description
In some cases, the output of tr.Processes.Default.Command needs to be formatted before compared by gold files. Currently, commands are piped. As @zwoop pointed out on #6378, this is not ideal, especially when another python script is used. Is there any better way?
- e.g.
trafficserver/tests/gold_tests/h2/httpbin.test.py
Lines 92 to 93 in b670607
test_run.Processes.Default.Command = "curl -vs -k --http2 https://127.0.0.1:{0}/get | {1}".format( ts.Variables.ssl_port, json_printer)
trafficserver/tests/gold_tests/body_factory/http204_response_plugin.test.py
Lines 49 to 50 in b670607
tr.Processes.Default.Command = "python tcp_client.py 127.0.0.1 {0} {1} | grep -v '^Date: '| grep -v '^Server: ATS/'".\ format(ts.Variables.port, 'data/{0}_get.txt'.format(CUSTOM_PLUGIN_204_HOST))