Skip to content

Instantly share code, notes, and snippets.

View foursixnine's full-sized avatar
♾️
Dreaming about arepas and maria cookies!

Santiago Zarate foursixnine

♾️
Dreaming about arepas and maria cookies!
View GitHub Profile
# https://github.com/foursixnine/systeminstaller/blob/master/bootstrap-os.sh
# you could run all of this in a shell script
BOOTSTRAP_ROOTFS=/tmp/rootfs
mkdir ${BOOTSTRAP_ROOTFS}
mount -t ext3 -o noatime /dev/your/device ${BOOTSTRAP_ROOTFS}
mount -t proc proc ${BOOTSTRAP_ROOTFS}/proc/
mount -t sysfs sys ${BOOTSTRAP_ROOTFS}/sys/
mount -o bind /dev ${BOOTSTRAP_ROOTFS}/dev/
loadtest needs a script below /var/lib/openqa/cache/tests/sle - bootloader_poo40670.pm is not
[2018-11-06T18:17:18.0074 CET] [debug] error on bootloader_poo40670.pm: Can't locate ../../../pool/1/bootloader_poo40670.pm in @INC (you may need to install the ..::..::..::pool::1::bootloader_poo40670 module) (@INC contains: ../../../pool/1 /var/lib/openqa/cache/tests/sle/lib /var/lib/openqa/pool/1/blib/arch /var/lib/openqa/pool/1/blib/lib /usr/lib/os-autoinst /usr/lib/perl5/site_perl/5.18.2/ppc64le-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/ppc64le-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/ppc64le-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at (eval 739) line 1.
error on bootloader_poo40670.pm: Can't locate ../../../pool/1/bootloader_poo40670.pm in @INC (you may need to install the ..::..::..::pool::1::bootloader_poo40670 module) (@INC contains: ../../../pool/1 /var/lib/openqa/cache/tests/sle/lib /var/lib/openqa/poo
t/test-file_with_fails.tap ..
1..6
#
# Create a new Board and Tile, then place
# the Tile onto the board.
#
ok 1 - The object isa Board
ok 2 - Board size is zero
ok 3 - The object isa Tile
ok 4 - Get possible places to put the Tile
diff --git a/t/05-scheduler-dependencies.t b/t/05-scheduler-dependencies.t
index 81771028..766d9182 100644
--- a/t/05-scheduler-dependencies.t
+++ b/t/05-scheduler-dependencies.t
@@ -714,11 +714,12 @@ is_deeply($jobD2_h->{parents}->{Chained}, [$jobA2->id], 'jobD2 has jobA2 as chai
is($jobD2_h->{settings}{TEST}, $jobD->TEST, 'jobD2 test and jobD test are equal');
my $jobA2_h = job_get_deps($jobA2->id);
-is_deeply(
- $jobA2_h->{children}->{Chained},
@foursixnine
foursixnine / Baz.pm
Last active March 5, 2018 15:30
Multiple inheritance: Baz uses Bar as a base, who uses Foo as a base.
package Baz;
use base "Bar";
1;
@foursixnine
foursixnine / gist:ebfe8f780484847612cfbfec3e2fc615
Created February 4, 2018 00:23
OpenSource Mechanical Keyboards
https://input.club/devices/infinity-keyboard/
https://opensource.com/article/17/5/building-open-source-mechanical-keyboards
https://github.com/help-14/mechanical-keyboard
{"job":{"id":99946,"children":{"Parallel":[],"Chained":[]},"origin_id":99945,"assets":{"hdd":["openSUSE-13.1-x86_64.hda"],"iso":["openSUSE-13.1-DVD-i586-Build0091-Media.iso"]},"state":"done","settings":{"VIDEOMODE":"text","NAME":"00099946-opensuse-13.1-DVD-i586-Build0091-textmode@32bit","HDD_1":"openSUSE-13.1-x86_64.hda","TEST":"textmode","MACHINE":"32bit","BUILD":"0091","DISTRI":"opensuse","ISO_MAXSIZE":"4700372992","DESKTOP":"textmode","DVD":"1","QEMUCPU":"qemu32","ARCH":"i586","VERSION":"13.1","ISO":"openSUSE-13.1-DVD-i586-Build0091-Media.iso","FLAVOR":"DVD"},"name":"opensuse-13.1-DVD-i586-Build0091-textmode@32bit","priority":35,"parents":{"Parallel":[],"Chained":[]},"t_finished":"2018-01-30T11:19:41","t_started":"2018-01-30T10:19:41","clone_id":99986,"testresults":[{"fatal":0,"result":"passed","category":"installation","important":0,"name":"isosize","milestone":0,"details":[{"screenshot":"isosize-1.png","num":1,"md5_basename":"61d0c3faf37d49d33b6fc308f2.png","result":"unk","md5_dirname":"347/da6"}]},{"det
[
{
"properties": [
],
"area": [
{
"similarity": 100,
"h": 59,
"y": 0,
@foursixnine
foursixnine / mojo-progress-bar.pl
Last active June 20, 2017 11:46 — forked from olegwtf/gist:c9c5a266352cba73dc5b
Mojo::UserAgent progress bar
BEGIN { $ENV{MOJO_MAX_MESSAGE_SIZE} = 1024**3 }
use strict;
use Mojo::UserAgent;
my $ua = Mojo::UserAgent->new;
$ua->on(start => sub {
my ($ua, $tx) = @_;
my $progress = 0;
$tx->res->on(progress => sub {
clone_job.pl \
--from openqa.opensuse.org 408843 \
--skip-chained-deps --skip-deps --skip-download \ HDD_1=opensuse-tumbleweed.qcow2 ISO=