File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ phases:
1212 - echo "The benchmark config is {{ benchmark_config_id }}"
1313
1414 # Download the model from S3
15- - curl -s --fail '{{ model_path }}' -o model.zip || false
15+ - curl -s --fail '{{ model_path }}' -o model.zip
1616 - unzip model.zip && ls -la
1717
1818 # Copy the model to sdcard. This prints too much progress info when the files
@@ -35,6 +35,10 @@ phases:
3535
3636 test:
3737 commands:
38+ # Fail the test if the model doesn't exist, doing it here so that AWS can report the status back
39+ - echo "Verify model"
40+ - curl -I --fail '{{ model_path }}' || false
41+
3842 # By default, the following ADB command is used by Device Farm to run your Instrumentation test.
3943 # Please refer to Android's documentation for more options on running instrumentation tests with adb:
4044 # https://developer.android.com/studio/test/command-line#run-tests-with-adb
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ phases:
1414 - echo "The benchmark config is {{ benchmark_config_id }}"
1515
1616 # Download the model from S3
17- - curl -s --fail '{{ model_path }}' -o model.zip || false
17+ - curl -s --fail '{{ model_path }}' -o model.zip
1818 - unzip model.zip && ls -la
1919
2020 # Extract the app
@@ -34,6 +34,11 @@ phases:
3434 # The test phase includes commands that run your test suite execution.
3535 test:
3636 commands:
37+ # Fail the test if the model doesn't exist, doing it here so that AWS can report the status back
38+ - echo "Verify model"
39+ - curl -I --fail '{{ model_path }}' || false
40+
41+ # Run the benchmark
3742 - xcodebuild test-without-building -destination id=$DEVICEFARM_DEVICE_UDID -xctestrun $DEVICEFARM_TEST_PACKAGE_PATH/*.xctestrun -derivedDataPath $DEVICEFARM_LOG_DIR
3843
3944 # The post test phase includes are commands that are run after your tests are executed.
You can’t perform that action at this time.
0 commit comments