@@ -56,7 +56,7 @@ function test_01_top_level_config_file {
5656 # │ └── HelloWorld.proto
5757 # └── grpc-swift-proto-generator-config.json
5858
59- local test_dir=$( test_dir_name)
59+ local -r test_dir=$( test_dir_name)
6060 mkdir -p " ${test_dir} /Sources/Protos"
6161 cp " ${package_manifest} " " ${test_dir} /"
6262 cp " ${sources} /HelloWorldAdopter.swift" " ${test_dir} /Sources/"
@@ -73,7 +73,7 @@ function test_02_peer_config_file {
7373 # ├── HelloWorld.proto
7474 # └── grpc-swift-proto-generator-config.json
7575
76- local test_dir=$( test_dir_name)
76+ local -r test_dir=$( test_dir_name)
7777 mkdir -p " ${test_dir} /Sources/Protos"
7878 cp " ${package_manifest} " " ${test_dir} /"
7979 cp " ${sources} /HelloWorldAdopter.swift" " ${test_dir} /Sources/"
@@ -91,7 +91,7 @@ function test_03_separate_service_message_protos {
9191 # ├── Service.proto
9292 # └── grpc-swift-proto-generator-config.json
9393
94- local test_dir=$( test_dir_name)
94+ local -r test_dir=$( test_dir_name)
9595 mkdir -p " ${test_dir} /Sources/Protos"
9696 cp " ${package_manifest} " " ${test_dir} /"
9797 cp " ${sources} /HelloWorldAdopter.swift" " ${test_dir} /Sources/"
@@ -113,7 +113,7 @@ function test_04_cross_directory_imports {
113113 # ├── Service.proto
114114 # └── grpc-swift-proto-generator-config.json
115115
116- local test_dir=$( test_dir_name)
116+ local -r test_dir=$( test_dir_name)
117117 mkdir -p " ${test_dir} /Sources/Protos/directory_1"
118118 mkdir -p " ${test_dir} /Sources/Protos/directory_2"
119119
@@ -138,7 +138,7 @@ function test_05_two_definitions {
138138 # │ └── HelloWorld.proto
139139 # └── grpc-swift-proto-generator-config.json
140140
141- local test_dir=$( test_dir_name)
141+ local -r test_dir=$( test_dir_name)
142142 mkdir -p " ${test_dir} /Sources/Protos/HelloWorld"
143143 mkdir -p " ${test_dir} /Sources/Protos/Foo"
144144
@@ -165,7 +165,7 @@ function test_06_nested_definitions {
165165 # ├── HelloWorld.proto
166166 # └── grpc-swift-proto-generator-config.json
167167
168- local test_dir=$( test_dir_name)
168+ local -r test_dir=$( test_dir_name)
169169 mkdir -p " ${test_dir} /Sources/Protos/HelloWorld/FooDefinitions/Foo"
170170 cp " ${package_manifest} " " ${test_dir} /"
171171 cp " ${sources} /FooHelloWorldAdopter.swift" " ${test_dir} /Sources/"
@@ -188,7 +188,7 @@ function test_07_duplicated_proto_file_name {
188188 # └── noop2
189189 # └── noop.proto
190190
191- local test_dir=$( test_dir_name)
191+ local -r test_dir=$( test_dir_name)
192192 mkdir -p " ${test_dir} /Sources/Protos"
193193
194194 cp " ${package_manifest} " " ${test_dir} /"
0 commit comments