On Wed, Jan 27, 2016 at 10:16:25AM +0100, Martin Husemann wrote: > On Wed, Jan 27, 2016 at 09:51:47AM +0100, Manuel Bouyer wrote: > > it also pass when atf-run is started from /usr/tests/fs > > Trying again to run from /usr/tests/ ...
atf run from /usr/tests fails as in the automated run. So the failure depends on something happening before. > > Is /tmp on a tmpfs? AFAIK no: # df /tmp Filesystem 1K-blocks Used Avail %Cap Mounted on /dev/xbd0a 739711 638140 64586 90% / This time I got the raw atf-run output: tp-start: 1453892189.529438, fs/psshfs/t_psshfs, 3 tc-start: 1453892189.529519, inode_nos tc-so:Setting up SSH server configuration tc-so:Executing command [ cp /usr/libexec/sftp-server . ] tc-so:Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key . ] tc-so:Executing command [ cp /usr/tests/fs/psshfs/ssh_host_key.pub . ] tc-so:Executing command [ chmod 400 ssh_host_key ] tc-so:Executing command [ chmod 444 ssh_host_key.pub ] tc-so:SSH server started (pid 11867) tc-so:Setting up SSH client configuration tc-so:Executing command [ ssh-keygen -f ssh_user_key -t rsa -b 1024 -N -q ] tc-so:Executing command [ cp ssh_user_key.pub authorized_keys ] tc-so:Executing command [ chmod 600 authorized_keys ] tc-so:Executing command [ mount -t psshfs -o -F=/tmp/atf-run.9jjrTs/ssh_config localhost:/tmp/atf-run.9jjrTs/root mnt ] tc-so:Executing command [ ./ne_inodes.sh root/dir root/dir/file1 ] tc-so:Executing command [ ./ne_inodes.sh root/dir root/dir/file2 ] tc-so:Executing command [ ./ne_inodes.sh root/dir/file1 root/dir/file2 ] tc-so:Executing command [ ./ne_inodes.sh root/file3 root/file4 ] tc-se:umount: mnt: not currently mounted tc-so:Stopping SSH server (pid 11867) tc-so:Server output was: tc-end: 1453892191.546682, inode_nos, passed atf-run: ERROR: tools::fs::file_info: Cannot get information of /tmp/atf-run.9jjrTs/mnt; lstat(2) failed: Device not configured note that the test passes, while umount says "not currenly mounted". /tmp/atf-run.9jjrTs is still here: # ls -F /tmp/atf-run.9jjrTs/ ls: mnt: Device not configured authorized_keys root/ ssh_host_key ssh_user_key.pub known_hosts sftp-server* ssh_host_key.pub sshd.log ne_inodes.sh* ssh_config ssh_user_key sshd_config # ls -F /tmp/atf-run.9jjrTs/root/ dir/ file3 file4 # ls -F /tmp/atf-run.9jjrTs/root/dir/ file1 file2 sshd.log is empty -- Manuel Bouyer <bou...@antioche.eu.org> NetBSD: 26 ans d'experience feront toujours la difference --