Skip to content

Commit be93cd9

Browse files
committed
More updates to reflect changes to testthat
1 parent 866976e commit be93cd9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

azure-pipelines.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ jobs:
412412
- bash: |
413413
414414
# junit reporter output is to test_results_bug.xml
415-
touch test_results_bug.xml
416415
sudo R -q -e '
417416
library(testthat);
418417
output_file <- file("test_console_output_bug.txt");
@@ -425,7 +424,11 @@ jobs:
425424
426425
cat test_console_output_bug.txt
427426
428-
mv test_results_bug.xml $(Pipeline.Workspace)/logs
427+
if [ -e test_results_bug.xml ]; then
428+
mv test_results_bug.xml $(Pipeline.Workspace)/logs
429+
else
430+
touch $(Pipeline.Workspace)/logs/test_results_bug.xml
431+
fi
429432
430433
workingDirectory: $(Pipeline.Workspace)/dsBaseClient
431434
displayName: 'Bug report output'

0 commit comments

Comments
 (0)