← Back to issue list

snaps tests fail because of the new current link

View original Launchpad issue

Metadata

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

Current evaluation

Updated snap tests for snapd's new current-revision symlink, fixing BusyBox and Mosquitto failures in snapcore/snapcraft#1187 (57055d1e4).

Resolution: closed resolved

Reason: PR snapcore/snapcraft#1187 was merged as commit 57055d1e4, updating the tests to account for the new current symlink and resolving the archive-blocking failures.

Evaluated by: mr-cal-bot

No scores available.

Issue body

snapd in zesty now creates a symlink from ~/snap/<name>/current to ~/snap/<name>/<revision>. This is causing the busybox and mosquitto snaps tests fail: ====================================================================== ERROR: demos_tests.test_busybox.BusyBoxTestCase.test_busybox ---------------------------------------------------------------------- output: {{{b"rm: cannot remove '/home/ubuntu/snap/busybox/x1/busybox.test': No such file or directory\n"}}} Traceback (most recent call last): File "/tmp/autopkgtest.AovD16/build.Nh9/snapcraft/snaps_tests/__init__.py", line 242, in run_command_in_snappy_testbed return self.snappy_testbed.run_command(command, cwd) File "/tmp/autopkgtest.AovD16/build.Nh9/snapcraft/snaps_tests/testbed.py", line 40, in run_command stderr=subprocess.STDOUT).decode('utf-8') File "/usr/lib/python3.5/subprocess.py", line 316, in check_output **kwargs).stdout File "/usr/lib/python3.5/subprocess.py", line 398, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command 'rm ~/snap/busybox/*/busybox.test' returned non-zero exit status 1 ====================================================================== FAIL: demos_tests.test_mosquitto.MosquittoTestCase.test_mosquitto ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/autopkgtest.AovD16/build.Nh9/snapcraft/snaps_tests/demos_tests/test_mosquitto.py", line 46, in test_mosquitto 'MQTT subscriber connected.\n' File "/tmp/autopkgtest.AovD16/build.Nh9/snapcraft/snaps_tests/__init__.py", line 231, in assert_command_in_snappy_testbed self.assertEqual(expected_output, 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: !=: reference = '''\ MQTT subscriber connected. test-mosquitto-topic b'test-message' test-mosquitto-topic b'exit' ''' actual = '''\ MQTT subscriber connected. test-mosquitto-topic b'test-message' test-mosquitto-topic b'exit' MQTT subscriber connected. test-mosquitto-topic b'test-message' test-mosquitto-topic b'exit' '''

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Updated snap tests for snapd's new current-revision symlink, fixing BusyBox and Mosquitto failures in snapcore/snapcraft#1187 (57055d1e4).
stealth/space-bunny-alpha — closed resolved Updated BusyBox and Mosquitto tests for snapd's new current symlink; fixed by merged PR #1187 (commit 57055d1e4).
stealth/space-bunny-alpha — closed resolved Updated tests to handle snapd's new ~/snap/<name>/current symlink, fixing BusyBox and Mosquitto test failures; merged via canonical/snapcraft#1187 (57055d1e4).
qwen/qwen3.6-35b-a3b — — Fixed. Closed without comments after updating the test suite to handle snapd's new current symlink, resolving busybox and mosquitto test failures.
qwen/qwen3.6-35b-a3b — — Closed. Test failures caused by snapd's new current symlink were resolved by updating testbed glob patterns to exclude symlinks. No additional comments or follow-up PRs were recorded.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Tests failing due to snapd's new current symlink were not addressed, likely abandoned or superseded by upstream snapd changes.
qwen3.6-35b-a3b-mtp-q6 — — Closed. Test failures caused by snapd's new current symlink breaking busybox and mosquitto tests were resolved by updating test commands to handle the symlink structure.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#1187 (confidence 100%)

    Commit 57055d1e4 applies this fix and is linked from the issue.

Related issues

Issue Project State Summary Similarity
#1187 tests: take into account the new current link. snapcraft merged Merged in PR #1187 (commit 57055d1e4), updating tests to account for snapd's new ~/snap/<name>/current symlink.
74%
#1569401 example tests are failing because they call the old snappy command snapcraft (launchpad) closed Example tests were updated from snappy to snap, fixing Launchpad #1569401 through merged PR ubuntu-core/snapcraft#439 (commit bce446559).
73%