debug
This commit is contained in:
parent
30e3d6b9c6
commit
3f7f9f99e0
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -21,7 +21,9 @@ jobs:
|
|||
run: nix build path://$PWD/
|
||||
- name: Run tests
|
||||
run: PATH="$PWD/result/bin:$PATH" ./test.py
|
||||
- name: Run tests
|
||||
run: PATH="$PWD/result/bin:$PATH" ./test.py
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: debug
|
||||
path: /tmp/debug.tar.xz
|
||||
name: debug.tar.gz
|
||||
path: /tmp/debug.tar.gz
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
let system = "x86_64-linux"; in
|
||||
let nixpkgs = import nixpkgs-git { config = { allowUnfree = true;}; system = system; }; in
|
||||
|
||||
let mypackages = with nixpkgs; [ coreutils python3 sqlite ]; in
|
||||
let mypackages = with nixpkgs; [ coreutils python3 sqlite awk ]; in
|
||||
|
||||
with import nixpkgs-git { system = "x86_64-linux"; };
|
||||
symlinkJoin {
|
||||
|
|
3
test.py
3
test.py
|
@ -32,7 +32,8 @@ with tempfile.TemporaryDirectory(prefix="test", dir="/tmp") as tempdir:
|
|||
h = subprocess.check_output([os.path.abspath('./hash-files.py'), 'test/foo'], cwd=tempdir).strip()
|
||||
if h == b'e8e0e538fa2a79a6c03d5575734bb77ee8c8734b07201d3d7dfc289c118d81a4':
|
||||
print("test passed")
|
||||
print(subprocess.check_output("tar -zcf /tmp/debug.tar.gz .", cwd=tempdir, shell=True))
|
||||
else:
|
||||
print("TEST FAILED: got hash " + repr(h))
|
||||
print(subprocess.check_output("tar -Jcf /tmp/debug.tar.xz .", cwd=tempdir, shell=True))
|
||||
print(subprocess.check_output("tar -zcf /tmp/debug.tar.gz .", cwd=tempdir, shell=True))
|
||||
exit(0)
|
Loading…
Reference in New Issue
Block a user