Skip to content
Snippets Groups Projects
Commit 44f60350 authored by DISSOUBRAY Nathan's avatar DISSOUBRAY Nathan
Browse files

Properly exit on error in block to block test

parent a3f63966
No related branches found
No related tags found
1 merge request!10Write `get-file` and commands to get the list of blocks from another node
Pipeline #5339 passed
use ../swarm.nu *
use ../app.nu
use std assert
use help_func/exit_func.nu exit_on_error
# define variables
let SWARM = swarm create 2
......@@ -108,7 +109,7 @@ try {
swarm kill --no-shell
print "Checking the difference between the original and reconstructed file"
let difference = diff $"($output_dir)/../($res_filename)" $test_file
let difference = {diff $"($output_dir)/../($res_filename)" $test_file} | exit_on_error | get stdout
if $difference == "" {
print "Test successful !"
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment