[Bug 1670441] Review Request: setconf - Tool for changing values of parameters in text files

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=1670441

Patrik Kopkan <pkopkan@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|needinfo?(pkopkan@xxxxxxxxx |
                   |m)                          |



--- Comment #21 from Patrik Kopkan <pkopkan@xxxxxxxxxx> ---
Hi,
The tests are not being run.
The command "awk '/^..\/setconf.py/ { print "%{__python3} " $0; next } { print
}' testcases/test.sh >testcases/test.sh" leaves test.sh empty.
This is because the file is first opened for reading (by ">testcases/test.sh"),
which deletes the contents. After that, "awk" is run with that file as output,
and told to read the file as input.
This could be solved by saving the modified test suite to a different file (for
example, ">testcases/test-rpm.sh"), and running that for the tests.
There are some other possible solutions on
https://stackoverflow.com/questions/16529716/awk-save-modifications-in-place.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux