apjanke / octave-testify

New BIST (Built-In Self Test) functions for GNU Octave
GNU General Public License v3.0
4 stars 2 forks source link

forge tester: Flatpak sandboxing hides results files #26

Closed apjanke closed 5 years ago

apjanke commented 5 years ago

The results files for this go into /tmp/<whatever>. But in a Flatpak-installed Octave, it seems like the filesystem is sandboxed/virtualized and that /tmp is redirected.

octave:5> testify.install_and_test_forge_pkgs
Log file: /tmp/octave-testify-ForgePkgTester/octave-testify-ForgePkgTester-2019-03-16_18-34-40/test_all_forge_pkgs.log

But:

janke@ubix:~ $ ls /tmp/octave*
zsh: no matches found: /tmp/octave*

Figure out a good way to expose these result files under Flatpak on Linux. We need Flatpak support because that seems to be the only good way to install a recent Octave on Linux.

References:

apjanke commented 5 years ago

I suppose I could just stick the results in ~/octave/testify/forge-tester/results. Writes to ~ work under Flatpak Octave.

apjanke commented 5 years ago

Well, now that I upgraded my Flatpak Octave to 5.1.0, it won’t install .zip file packages any more.

janke@ubix:~ $ flatpak run org.octave.Octave
[...snip...]
GNU Octave, version 5.1.0
[...snip...]

octave:1> pkg install https://github.com/apjanke/octave-testify/archive/master.zip
unpack: unarchiving program exited with status: 2
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
error: called from
    unpack at line 274 column 5
    untar at line 48 column 5
    install at line 81 column 9
    pkg at line 441 column 9
octave:1> 

Luckily, this seems to work:

octave:1> pkg install https://github.com/apjanke/octave-testify/archive/master.zip
apjanke commented 5 years ago

I stuck the output in ~/octave/testify: https://github.com/apjanke/octave-testify/commit/4aabc5d972792eba4fc4a253f95d399cac5a09a3.

Maybe I should do the same change on macOS for consistency.

apjanke commented 5 years ago

Gonna leave it as is on macOS for now. Calling this fixed.