@@ -56,7 +56,7 @@ function test_01_top_level_config_file {
56
56
# │ └── HelloWorld.proto
57
57
# └── grpc-swift-proto-generator-config.json
58
58
59
- local test_dir=$( test_dir_name)
59
+ local -r test_dir=$( test_dir_name)
60
60
mkdir -p " ${test_dir} /Sources/Protos"
61
61
cp " ${package_manifest} " " ${test_dir} /"
62
62
cp " ${sources} /HelloWorldAdopter.swift" " ${test_dir} /Sources/"
@@ -73,7 +73,7 @@ function test_02_peer_config_file {
73
73
# ├── HelloWorld.proto
74
74
# └── grpc-swift-proto-generator-config.json
75
75
76
- local test_dir=$( test_dir_name)
76
+ local -r test_dir=$( test_dir_name)
77
77
mkdir -p " ${test_dir} /Sources/Protos"
78
78
cp " ${package_manifest} " " ${test_dir} /"
79
79
cp " ${sources} /HelloWorldAdopter.swift" " ${test_dir} /Sources/"
@@ -91,7 +91,7 @@ function test_03_separate_service_message_protos {
91
91
# ├── Service.proto
92
92
# └── grpc-swift-proto-generator-config.json
93
93
94
- local test_dir=$( test_dir_name)
94
+ local -r test_dir=$( test_dir_name)
95
95
mkdir -p " ${test_dir} /Sources/Protos"
96
96
cp " ${package_manifest} " " ${test_dir} /"
97
97
cp " ${sources} /HelloWorldAdopter.swift" " ${test_dir} /Sources/"
@@ -113,7 +113,7 @@ function test_04_cross_directory_imports {
113
113
# ├── Service.proto
114
114
# └── grpc-swift-proto-generator-config.json
115
115
116
- local test_dir=$( test_dir_name)
116
+ local -r test_dir=$( test_dir_name)
117
117
mkdir -p " ${test_dir} /Sources/Protos/directory_1"
118
118
mkdir -p " ${test_dir} /Sources/Protos/directory_2"
119
119
@@ -138,7 +138,7 @@ function test_05_two_definitions {
138
138
# │ └── HelloWorld.proto
139
139
# └── grpc-swift-proto-generator-config.json
140
140
141
- local test_dir=$( test_dir_name)
141
+ local -r test_dir=$( test_dir_name)
142
142
mkdir -p " ${test_dir} /Sources/Protos/HelloWorld"
143
143
mkdir -p " ${test_dir} /Sources/Protos/Foo"
144
144
@@ -165,7 +165,7 @@ function test_06_nested_definitions {
165
165
# ├── HelloWorld.proto
166
166
# └── grpc-swift-proto-generator-config.json
167
167
168
- local test_dir=$( test_dir_name)
168
+ local -r test_dir=$( test_dir_name)
169
169
mkdir -p " ${test_dir} /Sources/Protos/HelloWorld/FooDefinitions/Foo"
170
170
cp " ${package_manifest} " " ${test_dir} /"
171
171
cp " ${sources} /FooHelloWorldAdopter.swift" " ${test_dir} /Sources/"
@@ -188,7 +188,7 @@ function test_07_duplicated_proto_file_name {
188
188
# └── noop2
189
189
# └── noop.proto
190
190
191
- local test_dir=$( test_dir_name)
191
+ local -r test_dir=$( test_dir_name)
192
192
mkdir -p " ${test_dir} /Sources/Protos"
193
193
194
194
cp " ${package_manifest} " " ${test_dir} /"
0 commit comments