selftests print "no such file or directory" on error

Bug #1468958 reported by Leo Arias on 2015-06-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Low
Unassigned

Bug Description

When the selftests written in go fail, they print the error message alright. But they also print the useless message "no such file or directory". For example:

/home/elopio/workspace/canonical/snappy/experimental/cross-compile-debs-merge-failover/_integration-tests/tests/install_test.go:47:
    ...open /home/elopio/workspace/canonical/snappy/experimental/cross-compile-debs-merge-failover/_integration-tests/tests/install_test.go: no such file or directory
... value string = "" +
... "Installing hello-world\n" +
... "Name Date Version Developer \n" +
... "ubuntu-core 2015-06-26 -1 ubuntu \n" +
... "hello-world 2015-06-26 1.0.18 canonical \n" +
... "port-listener 2015-06-11 0.1 sideload \n" +
... "webdm 2015-06-11 0.9 \n" +
... "webdm 2015-04-23 0.5 sideload \n" +
... "generic-amd64 2015-06-11 1.1.1 \n" +
... "Reboot to use the new ubuntu-core.\n"
... regex string = "" +
... "Installing hello-world\n" +
... "Name Date Version Developer \n" +
... ".*\n" +
... "hello-world .* .* canonical \n" +
... ".*\n"

START: /home/elopio/workspace/canonical/snappy/experimental/cross-compile-debs-merge-failover/_integration-tests/tests/install_test.go:34: InstallSuite.TearDownTest
PASS: /home/elopio/workspace/canonical/snappy/experimental/cross-compile-debs-merge-failover/_integration-tests/tests/install_test.go:34: InstallSuite.TearDownTest 0.570s

FAIL: /home/elopio/workspace/canonical/snappy/experimental/cross-compile-debs-merge-failover/_integration-tests/tests/install_test.go:38: InstallSuite.TestInstallSnapMustPrintPackageInformation

--- FAIL: Test (192.09 seconds)

Michael Vogt (mvo) wrote :

Is this still a issue? If so, please set status and importance of the bug accordingly.

Changed in snappy:
status: New → Incomplete
Leo Arias (elopio) wrote :

Yes it is. Setting to low because the error message is displayed properly, so this is just polluting the output a little.
And I have no idea how to fix it. The compiled go tests don't seem to be made to run in a machine that doesn't have the source.

Changed in snappy:
status: Incomplete → Triaged
importance: Undecided → Low
Michael Vogt (mvo) wrote :

This is fixed by moving to spread.

Changed in snappy:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers