Skip to content

Commit 49f15a8

Browse files
committed
chore(storage): Conditionally copying AWSAmplifyStressTests and AWSS3StoragePluginTests
1 parent 883c2d1 commit 49f15a8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

AmplifyPlugins/Storage/Tests/StorageHostApp/copy_configuration.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ if [ ! -d "$SOURCE_DIR" ]; then
1717
fi
1818

1919
mkdir -p "$DESTINATION_DIR"
20-
cp "$SOURCE_DIR/AWSS3StoragePluginTests-amplifyconfiguration.json" "$DESTINATION_DIR/amplifyconfiguration.json"
20+
21+
if [ -f "$SOURCE_DIR/AWSAmplifyStressTests-amplifyconfiguration.json" ]; then
22+
cp "$SOURCE_DIR/AWSAmplifyStressTests-amplifyconfiguration.json" "$DESTINATION_DIR/amplifyconfiguration.json"
23+
exit 0
24+
fi
25+
26+
if [ -f "$SOURCE_DIR/AWSS3StoragePluginTests-amplifyconfiguration.json" ]; then
27+
cp "$SOURCE_DIR/AWSS3StoragePluginTests-amplifyconfiguration.json" "$DESTINATION_DIR/amplifyconfiguration.json"
28+
exit 0
29+
fi
2130

2231
exit 0
32+

0 commit comments

Comments
 (0)