Skip to content

Commit 1bfdfb2

Browse files
authored
Properly escape backslashes in Python strings (#634)
1 parent 98fd2f2 commit 1bfdfb2

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

test/ci_app_tests/test_json.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_jsontree(self):
6363

6464
target_cmd = [ './ci_test_macros' ]
6565
query_cmd = [ '../../src/tools/cali-query/cali-query',
66-
'-q', 'SELECT count(),sum(time.inclusive.duration.ns),loop,iteration#main\ loop group by loop,iteration#main\ loop format json-split' ]
66+
'-q', 'SELECT count(),sum(time.inclusive.duration.ns),loop,iteration#main\\ loop group by loop,iteration#main\\ loop format json-split' ]
6767

6868
caliper_config = {
6969
'CALI_CONFIG_PROFILE' : 'serial-trace',

test/ci_app_tests/test_loopreport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_loopreport_target_loop_selection(self):
115115
""" Loop statistics option """
116116
def test_loop_stats(self):
117117
target_cmd = [ './ci_test_macros', '10', 'spot,loop.stats,output=stdout' ]
118-
query_cmd = [ '../../src/tools/cali-query/cali-query', '-q', 'let r=leaf() select * where r=main\ loop format json' ]
118+
query_cmd = [ '../../src/tools/cali-query/cali-query', '-q', 'let r=leaf() select * where r=main\\ loop format json' ]
119119

120120
obj = json.loads( cat.run_test_with_query(target_cmd, query_cmd, None) )
121121

test/ci_app_tests/test_monitor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_loopmonitor_iter_interval(self):
1414
caliper_config = {
1515
'CALI_SERVICES_ENABLE' : 'loop_monitor,trace,report',
1616
'CALI_LOOP_MONITOR_ITERATION_INTERVAL' : '5',
17-
'CALI_REPORT_CONFIG' : 'select * where iteration#main\ loop format expand',
17+
'CALI_REPORT_CONFIG' : 'select * where iteration#main\\ loop format expand',
1818
'CALI_REPORT_FILENAME' : 'stdout',
1919
'CALI_LOG_VERBOSITY' : '0'
2020
}

test/ci_app_tests/test_report.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_report_nested_key(self):
5252

5353
caliper_config = {
5454
'CALI_SERVICES_ENABLE' : 'event,trace,report',
55-
'CALI_REPORT_CONFIG' : 'select *,count() group by path,iteration#main\ loop format expand',
55+
'CALI_REPORT_CONFIG' : 'select *,count() group by path,iteration#main\\ loop format expand',
5656
'CALI_LOG_VERBOSITY' : '0'
5757
}
5858

@@ -97,7 +97,7 @@ def test_report_aggregation_aliases(self):
9797

9898
caliper_config = {
9999
'CALI_SERVICES_ENABLE' : 'event,trace,report',
100-
'CALI_REPORT_CONFIG' : 'select *,count() as my\\ count\\ alias group by path,iteration#main\ loop format expand',
100+
'CALI_REPORT_CONFIG' : 'select *,count() as my\\ count\\ alias group by path,iteration#main\\ loop format expand',
101101
'CALI_LOG_VERBOSITY' : '0'
102102
}
103103

test/ci_app_tests/test_textlog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_textlog_with_end_event(self):
1212

1313
caliper_config = {
1414
'CALI_SERVICES_ENABLE' : 'event,textlog',
15-
'CALI_TEXTLOG_TRIGGER' : 'iteration#main\ loop',
15+
'CALI_TEXTLOG_TRIGGER' : 'iteration#main\\ loop',
1616
'CALI_TEXTLOG_FORMATSTRING' : '%region% iteration: %[2]iteration#main loop%',
1717
'CALI_LOG_VERBOSITY' : '0',
1818
}

0 commit comments

Comments
 (0)