public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [xfstests-bld PATCH] test-appliance: fix use of undefined variable in gen_results_summary
@ 2018-04-02 17:14 Eric Biggers
  2018-04-02 18:56 ` Theodore Y. Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2018-04-02 17:14 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: fstests, Eric Biggers

This fixes the following Python error when no tests were run:

    Traceback (most recent call last):
      File "/usr/local/bin/gen_results_summary", line 22, in <module>
	main()
      File "/usr/local/bin/gen_results_summary", line 19, in main
	sys.exit('No results file found in ' + results_dir)
    NameError: global name 'results_dir' is not defined

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 .../test-appliance/files/usr/local/bin/gen_results_summary      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kvm-xfstests/test-appliance/files/usr/local/bin/gen_results_summary b/kvm-xfstests/test-appliance/files/usr/local/bin/gen_results_summary
index be4401e..57c4a08 100755
--- a/kvm-xfstests/test-appliance/files/usr/local/bin/gen_results_summary
+++ b/kvm-xfstests/test-appliance/files/usr/local/bin/gen_results_summary
@@ -16,7 +16,7 @@ def main():
 
     if gen_results_summary(args.results_dir, args.output_file,
                            args.merge_file, args.verbose) == 0:
-        sys.exit('No results file found in ' + results_dir)
+        sys.exit('No results file found in ' + args.results_dir)
 
 if __name__ == "__main__":
     main()
-- 
2.17.0.rc1.321.gba9d0f2565-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-02 18:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-02 17:14 [xfstests-bld PATCH] test-appliance: fix use of undefined variable in gen_results_summary Eric Biggers
2018-04-02 18:56 ` Theodore Y. Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox