shutil.Error: ./results/fifo_log is a named pipe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopkgtest (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
$ adt-run --output-dir results .// --setup-
...
adt-run [15:13:25]: @@@@@@@
Unexpected error:
Traceback (most recent call last):
File "/usr/share/
command()
File "/usr/share/
r = f(c, ce)
File "/usr/share/
copyupdown(c, ce, False)
File "/usr/share/
copyupdown_
File "/usr/share/
copydown_
File "/usr/share/
shutil.
File "/usr/lib/
raise Error(errors)
shutil.Error: [('./results/
adt-run [15:13:30]: ERROR: testbed failed: cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']
$ adt-run .// --setup-
runs fine but here I wanted to look at which files were created by adt-run.
This happens because you put your --output-dir *within* the tested tree. This generally easily leads to recursive effects, as that tests tree needs to be copied to testbeds while having active files in the output dir. It's better to use /tmp/results/ or anything not inside the tests tree.
I'll commit a patch which at least avoids that particular issue.