android / android/android-test

Instrument Time output is affected by device locale

Open
#943 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

### Description
If you change the locale in a test, the "Time:" output printed by an `am instrument` command also changes. Instrumentation Output Parsers are then unable to parse the total instrumentation time.

### Steps to Reproduce
1. Change locale to Arabic
2. Run an instrument command
### Expected Results
Time: 1.23
### Actual Results
Time: ٣٫٦٤١
### AndroidX Test and Android OS Versions
All versions.

I already have a PR open to fix this: #931, I just need a review.

Contributor guide

Open the contributing guide

Research direction

Review PR #931 first, since the issue says the fix is already open and only needs review. Reproduce the locale change to Arabic and run an am instrument command; done means the Time output remains parseable with locale-independent digits and separators.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.