Skip to content

Commit

Permalink
Appease shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
glbrntt committed Feb 18, 2025
1 parent 0c1815f commit 249739e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dev/setup-plugin-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function test_01_top_level_config_file {
# │ └── HelloWorld.proto
# └── grpc-swift-proto-generator-config.json

local test_dir=$(test_dir_name)
local -r test_dir=$(test_dir_name)
mkdir -p "${test_dir}/Sources/Protos"
cp "${package_manifest}" "${test_dir}/"
cp "${sources}/HelloWorldAdopter.swift" "${test_dir}/Sources/"
Expand All @@ -73,7 +73,7 @@ function test_02_peer_config_file {
# ├── HelloWorld.proto
# └── grpc-swift-proto-generator-config.json

local test_dir=$(test_dir_name)
local -r test_dir=$(test_dir_name)
mkdir -p "${test_dir}/Sources/Protos"
cp "${package_manifest}" "${test_dir}/"
cp "${sources}/HelloWorldAdopter.swift" "${test_dir}/Sources/"
Expand All @@ -91,7 +91,7 @@ function test_03_separate_service_message_protos {
# ├── Service.proto
# └── grpc-swift-proto-generator-config.json

local test_dir=$(test_dir_name)
local -r test_dir=$(test_dir_name)
mkdir -p "${test_dir}/Sources/Protos"
cp "${package_manifest}" "${test_dir}/"
cp "${sources}/HelloWorldAdopter.swift" "${test_dir}/Sources/"
Expand All @@ -113,7 +113,7 @@ function test_04_cross_directory_imports {
# ├── Service.proto
# └── grpc-swift-proto-generator-config.json

local test_dir=$(test_dir_name)
local -r test_dir=$(test_dir_name)
mkdir -p "${test_dir}/Sources/Protos/directory_1"
mkdir -p "${test_dir}/Sources/Protos/directory_2"

Expand All @@ -138,7 +138,7 @@ function test_05_two_definitions {
# │ └── HelloWorld.proto
# └── grpc-swift-proto-generator-config.json

local test_dir=$(test_dir_name)
local -r test_dir=$(test_dir_name)
mkdir -p "${test_dir}/Sources/Protos/HelloWorld"
mkdir -p "${test_dir}/Sources/Protos/Foo"

Expand All @@ -165,7 +165,7 @@ function test_06_nested_definitions {
# ├── HelloWorld.proto
# └── grpc-swift-proto-generator-config.json

local test_dir=$(test_dir_name)
local -r test_dir=$(test_dir_name)
mkdir -p "${test_dir}/Sources/Protos/HelloWorld/FooDefinitions/Foo"
cp "${package_manifest}" "${test_dir}/"
cp "${sources}/FooHelloWorldAdopter.swift" "${test_dir}/Sources/"
Expand All @@ -188,7 +188,7 @@ function test_07_duplicated_proto_file_name {
# └── noop2
# └── noop.proto

local test_dir=$(test_dir_name)
local -r test_dir=$(test_dir_name)
mkdir -p "${test_dir}/Sources/Protos"

cp "${package_manifest}" "${test_dir}/"
Expand Down

0 comments on commit 249739e

Please sign in to comment.