File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 46
46
-vL \
47
47
--accept-flake-config \
48
48
".#$NIX_ATTR"
49
+ if [ -e result/summary.md ]; then
50
+ cat result/summary.md >> $GITHUB_STEP_SUMMARY
51
+ fi
Original file line number Diff line number Diff line change @@ -59,10 +59,19 @@ nixpkgs.lib.optionalAttrs (builtins.elem hypervisor self.lib.hypervisorsWithNetw
59
59
} ;
60
60
} ;
61
61
testScript = ''
62
+ import os
63
+
62
64
vm.wait_for_unit("microvm@${ hypervisor } -iperf-server.service", timeout = 900)
63
65
vm.succeed("ip addr add 10.0.0.2/24 dev microvm")
66
+
64
67
result = vm.wait_until_succeeds("iperf -c 10.0.0.1", timeout = 180)
65
68
print(result)
69
+
70
+ path = "{}/summary.md".format(os.environ.get("out"))
71
+ with open(path, 'w') as file:
72
+ file.write("```\n")
73
+ file.write(result)
74
+ file.write("```\n")
66
75
'' ;
67
76
meta . timeout = 1800 ;
68
77
} ) { inherit system ; pkgs = nixpkgs . legacyPackages . ${ system } ; } ;
You can’t perform that action at this time.
0 commit comments