Skip to content

tools/mpremote: Fix test_mount.sh - #19604

Open
hmaerki wants to merge 1 commit into
micropython:masterfrom
hmaerki:fix_mpremote_test_mount
Open

tools/mpremote: Fix test_mount.sh#19604
hmaerki wants to merge 1 commit into
micropython:masterfrom
hmaerki:fix_mpremote_test_mount

Conversation

@hmaerki

@hmaerki hmaerki commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

This fixes a failure in mpremote/test_mount.sh.

Obverved error

Somehow the line order in test_mount.sh.exp was out of ordner.

Erroronous test_mount.sh.exp:

x
y
Local directory ${TMP} is mounted at /remote

Fixed test_mount.sh.exp:

Local directory ${TMP} is mounted at /remote
x
y

Rationale

I assume, this happend in

$MPREMOTE mount ${TMP} exec "import mount_package; mount_package.x(); mount_package.y()"

Where mount outputs Local directory ${TMP} is mounted at /remote and exec ouputs x y.

Setting export ENV_PYTHONUNBUFFERED=1 should write these lines always in sequence.

Testing

Tested on linux. But NOT on windows/mac.

Trade-offs and Alternatives

Generative AI

I did not use generative AI tools when creating this PR.

@hmaerki
hmaerki force-pushed the fix_mpremote_test_mount branch from fd01699 to 8e439bb Compare August 11, 2026 18:33
Signed-off-by: Hans Maerki <buhtig.hans.maerki@ergoinfo.ch>
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.59%. Comparing base (f67ab9e) to head (60d69e5).
⚠️ Report is 181 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19604      +/-   ##
==========================================
+ Coverage   98.51%   98.59%   +0.07%     
==========================================
  Files         177      182       +5     
  Lines       22992    23320     +328     
  Branches        0        5       +5     
==========================================
+ Hits        22651    22992     +341     
+ Misses        341      327      -14     
- Partials        0        1       +1     
Flag Coverage Δ
unix-coverage-32bit 98.59% <ø> (?)
unix-coverage-64bit 98.52% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown

Code size report:

Reference:  unix/mpconfigport: Use setjmp GC helper on macOS for Intel. [b006887]
Comparison: tools/mpremote: Fix test_mount.sh. [merge of 60d69e5]
  mpy-cross:    +0 +0.000% 
   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
      esp32:    +0 +0.000% ESP32_GENERIC
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@octoprobe-bot

Copy link
Copy Markdown

Octoprobe PR report

Test Tests
passed
Tests
skipped
Tests
xfailed
Tests
failed
Total
Failures

@agatti agatti added the tools Relates to tools/ directory in source, or other tooling label Aug 11, 2026
@Josverl
Josverl self-requested a review August 11, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Relates to tools/ directory in source, or other tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants