[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 191/282: runtests: fix output to command log
From: |
gnunet |
Subject: |
[gnurl] 191/282: runtests: fix output to command log |
Date: |
Wed, 01 Apr 2020 14:30:56 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 711f022c055ae0932b864699ca8d49c057f07ee1
Author: Jay Satiro <address@hidden>
AuthorDate: Sat Feb 29 03:11:06 2020 -0500
runtests: fix output to command log
- Record only the command of the most recently ran test in the command
log.
This is a follow-up to 02988b7 from several weeks ago which fixed
writing to the command log, however it saved all commands for all tests
instead of just the most recently ran test as we would now expect.
Fixes https://github.com/curl/curl/commit/02988b7#commitcomment-37546876
Closes https://github.com/curl/curl/pull/5001
---
tests/runtests.pl | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 1bd402562..e867f2d95 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2566,7 +2566,7 @@ sub cleardir {
opendir(DIR, $dir) ||
return 0; # can't open dir
while($file = readdir(DIR)) {
- if(($file !~ /^\./) && ($file ne $CURLLOG)) {
+ if(($file !~ /^\./)) {
unlink("$dir/$file");
$count++;
}
@@ -3721,7 +3721,9 @@ sub singletest {
logmsg "$CMDLINE\n";
}
+ open(CMDLOG, ">", "$LOGDIR/$CURLLOG");
print CMDLOG "$CMDLINE\n";
+ close(CMDLOG);
unlink("core");
@@ -5410,14 +5412,6 @@ if($scrambleorder) {
$TESTCASES = join(" ", @rand);
}
-#######################################################################
-# Start the command line log
-#
-open(CMDLOG, ">", "$LOGDIR/$CURLLOG") ||
- logmsg "can't log command lines to $CURLLOG\n";
-
-#######################################################################
-
# Display the contents of the given file. Line endings are canonicalized
# and excessively long files are elided
sub displaylogcontent {
@@ -5583,11 +5577,6 @@ if(azure_check_environment() && $AZURE_RUN_ID) {
$AZURE_RUN_ID = azure_update_test_run($AZURE_RUN_ID);
}
-#######################################################################
-# Close command log
-#
-close(CMDLOG);
-
# Tests done, stop the servers
stopservers($verbose);
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 171/282: RELEASE-NOTES: synced, (continued)
- [gnurl] 171/282: RELEASE-NOTES: synced, gnunet, 2020/04/01
- [gnurl] 175/282: smtp: fix memory leak on exit path, gnunet, 2020/04/01
- [gnurl] 183/282: TODO: curl --proxycommand, gnunet, 2020/04/01
- [gnurl] 179/282: ci/tests: align Azure Pipeline job names with each other, gnunet, 2020/04/01
- [gnurl] 182/282: smtp: overwriting 'from' leaks memory, gnunet, 2020/04/01
- [gnurl] 186/282: md4: Use non-deprecated functions in mbedTLS >= 2.7.0, gnunet, 2020/04/01
- [gnurl] 180/282: ci/tests: Increase timeouts of Windows builds due to new tests, gnunet, 2020/04/01
- [gnurl] 184/282: pause: force-drain the transfer on unpause, gnunet, 2020/04/01
- [gnurl] 181/282: CIfuzz: switch off 'dry_run' mode, gnunet, 2020/04/01
- [gnurl] 178/282: ci/tests: Add Windows builds via Azure Pipelines using Docker, gnunet, 2020/04/01
- [gnurl] 191/282: runtests: fix output to command log,
gnunet <=
- [gnurl] 187/282: md5: Use pointer notation for array parameters in GnuTLS implementation, gnunet, 2020/04/01
- [gnurl] 190/282: polarssl: Additional removal, gnunet, 2020/04/01
- [gnurl] 170/282: http2: make pausing/unpausing set/clear local stream window, gnunet, 2020/04/01
- [gnurl] 168/282: tests: Automatically deduce the tool name from the test case for unit tests, gnunet, 2020/04/01
- [gnurl] 185/282: ci/tests: Send test results to Azure DevOps for reporting, gnunet, 2020/04/01
- [gnurl] 189/282: docs: fix typo on CURLINFO_RETRY_AFTER - alwaus -> always, gnunet, 2020/04/01
- [gnurl] 194/282: ci/tests: Make sure that the AZURE_ACCESS_TOKEN is available, gnunet, 2020/04/01
- [gnurl] 197/282: configure.ac: Disable metalink support if an incompatible SSL/TLS specified, gnunet, 2020/04/01
- [gnurl] 196/282: ci/tests: Update Azure DevOps pipeline job display names, gnunet, 2020/04/01
- [gnurl] 195/282: ci/tests: Fix typo in previous commit 597cf2, gnunet, 2020/04/01