-
-
Save grahamc/512f74951a2063efc8e9ec33f7602a68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine: waiting for success: echo 'SELECT 1' | /nix/store/rd5xdlpfqrayb6cjnlg9z4kpfjhfwvf8-mariadb-10.1.21/bin/mysql --host 10.50.2.10 | >&2 | |
machine: running command: echo 'SELECT 1' | /nix/store/rd5xdlpfqrayb6cjnlg9z4kpfjhfwvf8-mariadb-10.1.21/bin/mysql --host 10.50.2.10 | >&2 | |
machine: exit status 0 | |
machine: must succeed: echo "show databases;" | /nix/store/rd5xdlpfqrayb6cjnlg9z4kpfjhfwvf8-mariadb-10.1.21/bin/mysql --host 10.50.2.10 myapp | |
machine: exit status 0 | |
machine: must succeed: echo "create database if not exists myapp;" | /nix/store/rd5xdlpfqrayb6cjnlg9z4kpfjhfwvf8-mariadb-10.1.21/bin/mysql --host 10.50.2.10 | |
machine: exit status 0 | |
machine: must succeed: echo "show databases;" | /nix/store/rd5xdlpfqrayb6cjnlg9z4kpfjhfwvf8-mariadb-10.1.21/bin/mysql --host 10.50.2.10 myapp | |
machine: exit status 0 | |
machine: must succeed: /etc/setupwhat.sh >&2 | |
machine# + set -o pipefail | |
machine# + PATH=/nix/store/rd5xdlpfqrayb6cjnlg9z4kpfjhfwvf8-mariadb-10.1.21/bin:/nix/store/g5hg88yv8zk5zrmvycfjivxwjcms7g4f-jetpants-0.9.4/bin:/root/bin:/var/setuid-wrappers:/root/.nix-profile/bin:/root/.nix-profile/sbin:/root/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec | |
machine# + mysql --host 10.50.2.10 myapp | |
machine# + echo 'show databases;' | |
machine# Database | |
machine# information_schema | |
machine# identity | |
machine# myapp | |
machine# mysql | |
machine# performance_schema | |
machine# test | |
machine# + mysql --host 10.50.2.10 | |
machine# + echo 'create database if not exists myapp;' | |
machine# + mysql --host 10.50.2.10 myapp | |
machine# + echo 'show databases;' | |
machine# Database | |
machine# information_schema | |
machine# identity | |
machine# myapp | |
machine# mysql | |
machine# performance_schema | |
machine# test | |
machine# + mysql --host 10.50.2.10 myapp -N | |
machine# + echo 'show tables;' | |
machine# ++ wc -l | |
machine# ++ grep posts | |
machine# ++ mysql --host 10.50.2.10 myapp -N | |
machine# ++ echo 'show tables;' | |
machine# + exists=0 | |
machine: exit status 1 | |
machine: output: | |
error: command `/etc/setupwhat.sh >&2' did not succeed (exit code 1) | |
command `/etc/setupwhat.sh >&2' did not succeed (exit code 1) | |
cleaning up | |
killing machine (pid 45675) | |
mysql is up :)Database | |
information_schema | |
identity | |
myapp | |
mysql | |
performance_schema | |
test | |
-------- ^ db list | create db v-------- ^ create db | db list vDatabase | |
information_schema | |
identity | |
myapp | |
mysql | |
performance_schema | |
test | |
-------- ^ list dbs | whatever v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print $machine->waitUntilSucceeds("echo 'SELECT 1' | ${pkgs.mysql}/bin/mysql --host 10.50.2.10 | >&2"); | |
print "mysql is up :)"; | |
print $machine->succeed('echo "show databases;" | ${pkgs.mysql}/bin/mysql --host 10.50.2.10 myapp'); | |
print "-------- ^ db list | create db v"; | |
print $machine->succeed('echo "create database if not exists myapp;" | ${pkgs.mysql}/bin/mysql --host 10.50.2.10'); | |
print "-------- ^ create db | db list v"; | |
print $machine->succeed('echo "show databases;" | ${pkgs.mysql}/bin/mysql --host 10.50.2.10 myapp'); | |
print "-------- ^ list dbs | whatever v"; | |
print $machine->succeed("/etc/setupwhat.sh >&2"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment