Skip to content
Snippets Groups Projects
Unverified Commit 45dcee8b authored by boklm's avatar boklm
Browse files

Fix "mercurial repo build" test

Depending on the mercurial or tar version installed, the generated tar
file can be different. We change the test to check the checksum of the
files included in the tarball instead of the tar file.
parent 148d8541
Branches
No related tags found
1 merge request!63Bug 40077: Allow to specify sha512sum for input_files
......@@ -248,8 +248,7 @@ my @tests = (
build => [ 'mozmill-automation', 'build' ],
files => {
'out/mozmill-automation-bbad7215c713_sha256sum.txt' =>
'13660d3f3ebbc363056ccbd3794f8f78a940dd394a464093bee5fc0575ee4090 '
. "mozmill-automation-bbad7215c713.tar\n",
"ceeda3cd3285b6ed53233dc65e3beac82f2b284402a80ef6c1fcdf5b9861f068 s.txt\n",
},
},
{
......
......@@ -5,4 +5,11 @@ compress_tar: ''
t: '[% sha256(exec("cat testrun_remote.py")) %]'
build: |
#!/bin/sh
sha256sum [% project %]-[% c("version") %].tar > [% dest_dir %]/[% project %]-[% c("version") %]_sha256sum.txt
mkdir t
tar -C t -xf mozmill-automation-bbad7215c713.tar
files=$(find t | sort)
for file in $files
do
sha256sum $file >> s.txt
done
sha256sum s.txt > [% dest_dir %]/[% project %]-[% c("version") %]_sha256sum.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment