← Back to issue list

busybox demo test fails in yakkety with x1/busybox.test: No such file or directory

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1623621
Type
issue
State
closed
Author
~elopio
Labels
tests
Created
Updated
Closed

Current evaluation

Fixed the Yakkety BusyBox demo test failure by using the last installed data directory; the change landed in snapcore/snapcraft PR #801 (commit 8d91b7758).

Resolution: closed resolved

Reason: The test was failing because the data directory layout changed and it assumed a common x1 directory. PR #801 updated the test to use the last installed data directory and was recorded as commit 8d91b7758.

Evaluated by: mr-cal-bot

No scores available.

Issue body

====================================================================== ERROR: demos_tests.test_busybox.BusyBoxTestCase.test_busybox ---------------------------------------------------------------------- output: {{{b'touch: x1/busybox.test: No such file or directory\n'}}} Traceback (most recent call last): File "/tmp/adt-run.vdw3UB/build.MsX/real-tree/snaps_tests/demos_tests/test_busybox.py", line 33, in test_busybox '') File "/tmp/adt-run.vdw3UB/build.MsX/real-tree/snaps_tests/__init__.py", line 236, in assert_command_in_snappy_testbed output = self.run_command_in_snappy_testbed(command, cwd) File "/tmp/adt-run.vdw3UB/build.MsX/real-tree/snaps_tests/__init__.py", line 248, in run_command_in_snappy_testbed return self.snappy_testbed.run_command(command, cwd) File "/tmp/adt-run.vdw3UB/build.MsX/real-tree/snaps_tests/testbed.py", line 52, in run_command stderr=subprocess.STDOUT).decode('utf-8') File "/usr/lib/python3.5/subprocess.py", line 626, in check_output **kwargs).stdout File "/usr/lib/python3.5/subprocess.py", line 708, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '/snap/bin/busybox.touch ~/snap/busybox/$(ls ~/snap/busybox)/busybox.test' returned non-zero exit status 1 This error is caused because now a common directory is created next to the x1 directory.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed the Yakkety BusyBox demo test failure by using the last installed data directory; the change landed in snapcore/snapcraft PR #801 (commit 8d91b7758).
stealth/space-bunny-alpha — closed resolved Updated the BusyBox demo test to use the last installed data directory, fixing the Yakkety failure. Merged in PR #801 via commit 8d91b7758.
stealth/space-bunny-alpha — closed stale Busybox demo test was closed after a common directory was added beside x1; no resolving PR, commit, or maintainer explanation was recorded.
qwen/qwen3.6-35b-a3b — — Fixed by updating the test path to account for a new common directory created alongside x1, resolving the missing file error.
qwen/qwen3.6-35b-a3b — — Closed. The failing test was fixed by updating the file path to account for a newly created common directory alongside the x1 directory.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#801 (confidence 99%)

    The linked PR contains the BusyBox test fix and was recorded in the repository as commit 8d91b7758.

Related issues

Issue Project State Summary Similarity
#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).
74%
#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.
71%
#487 Update the busybox test to use the snap data path. snapcraft merged Merged PR #487 as commit f5f7840ec, updating the busybox test to use the snap data path and resolving LP #1574901. Follow-up #801 later refined the test to use the last installed data directory.
70%