From 6da0fdade325c2ce0f371e661801e6beb1e70cdb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 15 Dec 2010 18:33:43 +0100 Subject: python wrappers: make crash_data.create_crash_dump_dir() work Signed-off-by: Denys Vlasenko --- src/report-python/test_crash_data | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/report-python/test_crash_data (limited to 'src/report-python/test_crash_data') diff --git a/src/report-python/test_crash_data b/src/report-python/test_crash_data new file mode 100644 index 00000000..50afc002 --- /dev/null +++ b/src/report-python/test_crash_data @@ -0,0 +1,22 @@ +#!/usr/bin/python + +from report import * +import report + +cd = crash_data() +cd.add("foo", "bar") + +dd = cd.create_crash_dump_dir() + +if dd: + print "dd is nonzero" +else: + print "dd is zero" + +print "closing" +dd.close() + +if dd: + print "dd is nonzero" +else: + print "dd is zero" -- cgit From a10b0fa6bba8218a82d634100947e084ca8d6a36 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 15 Dec 2010 18:34:37 +0100 Subject: set chmod 0755 on test progs Signed-off-by: Denys Vlasenko --- src/report-python/test_crash_data | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 src/report-python/test_crash_data (limited to 'src/report-python/test_crash_data') diff --git a/src/report-python/test_crash_data b/src/report-python/test_crash_data old mode 100644 new mode 100755 -- cgit From 6a2b728d7525214402eff838bb37be175ddce6c3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 15 Dec 2010 18:44:55 +0100 Subject: Rename foo_crash_dump_dir -> foo_dump_dir To be exact, these three functions are renamed: load_crash_data_from_crash_dump_dir create_crash_dump_dir delete_crash_dump_dir Rationale: data structure is called "struct dump_dir", not "struct crash_dump_dir" Signed-off-by: Denys Vlasenko --- src/report-python/test_crash_data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/report-python/test_crash_data') diff --git a/src/report-python/test_crash_data b/src/report-python/test_crash_data index 50afc002..5f8f9a86 100755 --- a/src/report-python/test_crash_data +++ b/src/report-python/test_crash_data @@ -6,7 +6,7 @@ import report cd = crash_data() cd.add("foo", "bar") -dd = cd.create_crash_dump_dir() +dd = cd.create_dump_dir() if dd: print "dd is nonzero" -- cgit From 27276b34e3631f60a2414ab9c199f28de9b03780 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 16 Dec 2010 04:48:22 +0100 Subject: python wrapper: trivial cleanup Signed-off-by: Denys Vlasenko --- src/report-python/test_crash_data | 1 - 1 file changed, 1 deletion(-) (limited to 'src/report-python/test_crash_data') diff --git a/src/report-python/test_crash_data b/src/report-python/test_crash_data index 5f8f9a86..6f719a8f 100755 --- a/src/report-python/test_crash_data +++ b/src/report-python/test_crash_data @@ -1,7 +1,6 @@ #!/usr/bin/python from report import * -import report cd = crash_data() cd.add("foo", "bar") -- cgit