← Back to issue list

test_busybox example fails because the /snaps/bin/busybox.ls now returns the cwd contents

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1560255
Type
issue
State
closed
Author
~snappy-m-o
Labels
—
Created
Updated
Closed

Current evaluation

Updated the BusyBox example's expected output for Ubuntu Core's new ls behavior; PR #388 was merged as c56bea031.

Resolution: closed resolved

Reason: PR #388 updated the BusyBox example expectations and was merged into Snapcraft in commit c56bea031, resolving the failed test.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The recent changes in ubuntu-core (edge, not yet released to stable) break the test_busybox example: _StringException: Traceback (most recent call last): File "/home/jenkins-slave/workspace/github-snapcraft-examples-tests-cloud/examples_tests/test_busybox.py", line 30, in test_busybox '/snaps/bin/busybox.ls', '') File "/home/jenkins-slave/workspace/github-snapcraft-examples-tests-cloud/examples_tests/__init__.py", line 165, in assert_command_in_snappy_testbed self.assertEqual(output, expected_output) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 350, in assertEqual self.assertThat(observed, matcher, message) File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: 'busybox_1.0_amd64.snap\nsnaps\n' != ''

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Updated the BusyBox example's expected output for Ubuntu Core's new ls behavior; PR #388 was merged as c56bea031.
stealth/space-bunny-alpha — closed resolved Updated the BusyBox example for Ubuntu Core's new cwd listing behavior in merged PR #388 (c56bea031).
stealth/space-bunny-alpha — closed stale Launchpad #1560255 closed without a fix, comment, or linked resolution; the BusyBox example test was left failing after ubuntu-core changed busybox.ls output.
qwen/qwen3.6-35b-a3b — — test_busybox failed after ubuntu-core updated busybox.ls to return cwd contents. The issue was closed without resolution or comments, indicating it was abandoned or superseded by upstream test updates.
qwen/qwen3.6-35b-a3b — — test_busybox example failed because ubuntu-core changes caused busybox.ls to return cwd contents. The issue was closed.

Update history

Date Change
created

Related work

  • Likely Fixed By: ubuntu-core/snapcraft#388 (confidence 100%)

    PR #388 changed the expected BusyBox ls output and was merged as c56bea031.

Related issues

Issue Project State Summary Similarity
#388 busybox example: update the expected results snapcraft merged Merged in canonical/snapcraft#388 as c56bea031, updating BusyBox example expectations and using busybox.touch for Ubuntu Core's changed command directory.
80%
#392 busybox example: update the expected results snapcraft closed Superseded by snapcraft#388, merged as c56bea031 with updated BusyBox results for Ubuntu Core’s changed working directory.
80%
#1574901 busybox example no longer has permission to access files in home snapcraft (launchpad) closed Busybox example autopkgtest broke under new confinement default paths; fixed by ubuntu-core/snapcraft PR #487 updating the example tests, verified and released in snapcraft 2.8.8/2.8.8b (LP: #1574901 closed as verification-done).
71%