Failed tasks: alias resolved
2017/07/26 16:22:19 Executing external:ubuntu-core-16-arm-32:tests/main/alias (37/117)...
2017/07/26 16:27:19 WARNING: external:ubuntu-core-16-arm-32 running late. Current output:
-----
(... 66 lines above ...)
+ MATCH 'ok command 1'
+ echo 'Removing the snap should remove the aliases'
Removing the snap should remove the aliases
+ snap remove aliases
2017-07-26T08:29:46Z ERROR cannot remove snap file "aliases", will retry in 3 mins: [--root / disable snap-aliases-x1.mount] failed with exit status 1: Removed symlink /etc/systemd/system/multi-user.target.wants/snap-aliases-x1.mount.
Failed to execute operation: Connection reset by peer
2017-07-26T08:33:11Z ERROR cannot remove snap file "aliases", will retry in 3 mins: [--root / disable snap-aliases-x1.mount] failed with exit status 1: Failed to execute operation: Connection timed out
[/] Remove snap "aliases" (x1) from the system
-----
2017/07/26 16:32:19 WARNING: external:ubuntu-core-16-arm-32 running late. Current output:
-----
(...)
2017-07-26T08:36:36Z ERROR cannot remove snap file "aliases", will retry in 3 mins: [--root / disable snap-aliases-x1.mount] failed with exit status 1: Failed to execute operation: Failed to activate service 'org.freedesktop.systemd1': timed out
[-] Remove snap "aliases" (x1) from the system
-----
2017/07/26 16:37:18 Error executing external:ubuntu-core-16-arm-32:tests/main/alias :
-----
+ echo 'Sanity check'
Sanity check
+ aliases.cmd1
+ MATCH 'ok command 1'
+ aliases.cmd2
+ MATCH 'ok command 2'
+ echo 'Create manual aliases'
Create manual aliases
+ snap alias aliases.cmd1 alias1
+ MATCH '.*- aliases.cmd1 as alias1.*'
+ snap alias aliases.cmd2 alias2
Added:
- aliases.cmd2 as alias2
+ echo 'Test the aliases'
Test the aliases
+ test -h /snap/bin/alias1
+ test -h /snap/bin/alias2
+ alias1
+ MATCH 'ok command 1'
+ alias2
+ MATCH 'ok command 2'
+ echo 'Check listing'
Check listing
+ snap aliases
+ MATCH 'aliases.cmd1 +alias1 +manual'
+ MATCH 'aliases.cmd2 +alias2 +manual'
+ snap aliases
+ echo 'Disable one manual alias'
Disable one manual alias
+ snap unalias alias2
+ MATCH '.*- aliases.cmd2 as alias2.*'
+ echo 'One still works, one is not there'
One still works, one is not there
+ alias1
+ MATCH 'ok command 1'
+ test '!' -e /snap/bin/alias2
+ alias2
+ MATCH 'alias2: command not found'
+ echo 'Check listing again'
Check listing again
+ snap aliases
+ MATCH 'aliases.cmd1 +alias1 +manual'
+ snap aliases
+ MATCH 'aliases.cmd2 +alias2'
error: pattern not found, got:
Command Alias Notes
aliases.cmd1 alias1 manual
+ echo 'Disable all aliases'
Disable all aliases
+ snap unalias aliases
+ MATCH '.*- aliases.cmd1 as alias1*'
+ echo 'Alias is gone'
Alias is gone
+ test '!' -e /snap/bin/alias1
+ alias1
+ MATCH 'alias1: command not found'
+ snap aliases
+ MATCH 'aliases.cmd1 +alias1'
error: pattern not found, got:
Command Alias Notes
+ echo 'Recreate one'
Recreate one
+ snap alias aliases.cmd1 alias1
Added:
- aliases.cmd1 as alias1
+ alias1
+ MATCH 'ok command 1'
+ echo 'Removing the snap should remove the aliases'
Removing the snap should remove the aliases
+ snap remove aliases
2017-07-26T08:29:46Z ERROR cannot remove snap file "aliases", will retry in 3 mins: [--root / disable snap-aliases-x1.mount] failed with exit status 1: Removed symlink /etc/systemd/system/multi-user.target.wants/snap-aliases-x1.mount.
Failed to execute operation: Connection reset by peer
2017-07-26T08:33:11Z ERROR cannot remove snap file "aliases", will retry in 3 mins: [--root / disable snap-aliases-x1.mount] failed with exit status 1: Failed to execute operation: Connection timed out
2017-07-26T08:36:36Z ERROR cannot remove snap file "aliases", will retry in 3 mins: [--root / disable snap-aliases-x1.mount] failed with exit status 1: Failed to execute operation: Failed to activate service 'org.freedesktop.systemd1': timed out
2017-07-26T08:40:01Z ERROR cannot remove snap file "aliases", will retry in 3 mins: [--root / disable snap-aliases-x1.mount] failed with exit status 1: Failed to execute operation: Connection timed out
2017-07-26T08:43:27Z ERROR cannot remove snap file "aliases", will retry in 3 mins: [--root / disable snap-aliases-x1.mount] failed with exit status 1: Failed to execute operation: Failed to activate service 'org.freedesktop.systemd1': timed out
[\] Remove snap "aliases" (x1) from the system
<kill-timeout reached>
-----
2017/07/26 16:37:18 Debug output for external:ubuntu-core-16-arm-32:tests/main/alias :
-----