bug-parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue creating --results directory with parallel on windows


From: Joe Price
Subject: Issue creating --results directory with parallel on windows
Date: Sat, 19 Nov 2022 07:47:36 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0

Hello good sirs!

Using parallel on Windows 10 Pro 22H2 build 19045.2251 with Git Bash shell

JP@DESKTOP-NO51TDT MINGW64 ~/Source/rest-api/src/test/bash-scripts (master)
$ parallel --version
GNU parallel 20221022
Copyright (C) 2007-2022 Ole Tange, http://ole.tange.dk and Free Software
Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.

Web site: https://www.gnu.org/software/parallel

When using programs that use GNU Parallel to process data for publication
please cite as described in 'parallel --citation'.

--

I have a file 'tests_to_run' that starts with the following script i want to 'source':

v2/controllers/accounting-periods/happy-path-test-1.sh.wrap

I do:

source $(which env_parallel.bash)

env_parallel -ka tests_to_run -j 8 --results parallel_output source

and I get:

mkdir parallel_output/1/v2\_controllers\_accounting-periods\_happy-path-test-1.sh.wrap: No such file or directory at /c/Users/JP/bin/parallel line 12190.

The line 12190 referenced in 'parallel' is:

 File::Path::mkpath($out);

I can use 'mkdir' in the shell to create 'parallel_output/1/v2\_controllers\_accounting-periods\_happy-path-test-1.sh.wrap' but it seems like perl is having a problem with it on Windows? My guess is it has something to do with the path separators '/' and '\' being used together perhaps.

This same code works fine on linux

I would really love for the same code to work in both environments. If I have to I guess I can just redirect the output of the whole parallel to a file, but I like the way parallel does it and I think that this may be a genuine issue others could run into.

Please advise. Thank you!

-Joe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]