steps: - script: | set -eux -o pipefail ./wpt make-hosts-file | sudo tee -a /etc/hosts displayName: 'Update hosts (macOS)' condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) - powershell: | $hostFile = "$env:systemroot\System32\drivers\etc\hosts" Copy-Item -Path $hostFile -Destination "$hostFile.back" -Force python wpt make-hosts-file | Out-File $env:systemroot\System32\drivers\etc\hosts -Encoding ascii -Append displayName: 'Update hosts (Windows)' condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))